From dd8321730160bbd08b7ffaa053db9d09a568551d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sun, 17 Oct 2021 12:29:59 -0300 Subject: [PATCH] fix: build on windows --- core/tauri-utils/src/platform.rs | 22 +++++++++++++++------- core/tauri/src/manager.rs | 1 + 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/core/tauri-utils/src/platform.rs b/core/tauri-utils/src/platform.rs index c2eeee95d..f59c2ee0b 100644 --- a/core/tauri-utils/src/platform.rs +++ b/core/tauri-utils/src/platform.rs @@ -73,6 +73,7 @@ pub fn target_triple() -> crate::Result { /// `${exe_dir}/../lib/${exe_name}`. /// /// On MacOS, it's `${exe_dir}../Resources` (inside .app). +#[allow(unused_variables)] pub fn resource_dir(package_info: &PackageInfo, env: &Env) -> crate::Result { let exe = std::env::current_exe()?; let exe_dir = exe.parent().expect("failed to get exe directory"); @@ -86,8 +87,12 @@ pub fn resource_dir(package_info: &PackageInfo, env: &Env) -> crate::Result crate::Result WindowManager { let local_app_data = resolve_path( &self.inner.config, &self.inner.package_info, + self.inner.state.get::().inner(), &self.inner.config.tauri.bundle.identifier, Some(BaseDirectory::LocalData), );