Skip to content

Commit

Permalink
Fix up to zip to use SimpleFileOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrainer committed Jun 4, 2024
1 parent 6a6ffb7 commit 28c0d44
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xtask/src/commands/package/macos.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use anyhow::{ensure, Context, Result};
use base64::Engine;
use clap::Parser;
use std::io::Write as _;
use std::path::Path;
use std::process::{Command, Stdio};

use anyhow::{ensure, Context, Result};
use base64::Engine;
use clap::Parser;

use crate::tools::XcrunRunner;
use crate::utils::{PKG_PROJECT_ROOT, PKG_VERSION};

Expand Down Expand Up @@ -187,7 +188,7 @@ impl PackageMacos {
let mut zip = zip::ZipWriter::new(std::io::BufWriter::new(
std::fs::File::create(&dist_zip).context("could not create file")?,
));
let options = zip::write::FileOptions::default()
let options = zip::write::SimpleFileOptions::default()
.compression_method(zip::CompressionMethod::Stored)
.unix_permissions(0o755);
let path = Path::new("dist").join(bin_name);
Expand Down

0 comments on commit 28c0d44

Please sign in to comment.