fix: build failing on env validation on windows/macos

This commit is contained in:
Lucas Nogueira 2021-10-25 14:01:16 -03:00 committed by Lucas Nogueira
parent ae60a6e892
commit 828b9ee54c
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F

View File

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