浏览代码

fix: build failing on env validation on windows/macos

Lucas Nogueira 3 年之前
父节点
当前提交
828b9ee54c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/tauri-utils/src/lib.rs

+ 1 - 0
core/tauri-utils/src/lib.rs

@@ -58,6 +58,7 @@ impl Default for Env {
       #[cfg(target_os = "linux")]
       #[cfg(target_os = "linux")]
       appdir: std::env::var_os("APPDIR"),
       appdir: std::env::var_os("APPDIR"),
     };
     };
+    #[cfg(target_os = "linux")]
     if env.appimage.is_some() || env.appdir.is_some() {
     if env.appimage.is_some() || env.appdir.is_some() {
       // validate that we're actually running on an AppImage
       // validate that we're actually running on an AppImage
       // an AppImage is mounted to `/tmp/.mount_${appPrefix}${hash}`
       // an AppImage is mounted to `/tmp/.mount_${appPrefix}${hash}`