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), );