fix: build issues on windows

This commit is contained in:
Andrew Bastin
2023-10-16 12:33:37 +05:30
parent 20ba4bed5d
commit 05c8a1aa30
21 changed files with 54 additions and 29 deletions

View File

@@ -13,7 +13,7 @@ extern crate objc;
mod mac;
#[cfg(target_os = "windows")]
mod windows;
mod win;
use tauri::Manager;
@@ -23,10 +23,14 @@ fn main() {
tauri::Builder::default()
.setup(|app| {
if cfg!(target_os = "macos") {
#[cfg(target_os = "macos")]
use mac::window::setup_mac_window;
#[cfg(target_os = "macos")]
setup_mac_window(app);
} else if cfg!(target_os = "windows") {
use win::window::setup_win_window;
#[cfg(target_os = "windows")]
setup_win_window(app);
}