Skip to content

Commit

Permalink
fix: Windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Jan 18, 2024
1 parent 2d2acc4 commit 7e4c7e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ impl AxoUpdater {
};

let installer_path = Utf8PathBuf::try_from(tempdir.path().join("installer"))?;
let installer_file = File::create(&installer_path)?;

if cfg!(unix) {
#[cfg(unix)]
{
let installer_file = File::create(&installer_path)?;
let mut perms = installer_file.metadata()?.permissions();
perms.set_mode(0o744);
installer_file.set_permissions(perms)?;
Expand Down

0 comments on commit 7e4c7e0

Please sign in to comment.