Skip to content

Commit

Permalink
fix: create target binary directory before copying
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-crabnebula committed Oct 19, 2023
1 parent 7837572 commit c5a7ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/packager/src/package/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {

let resources_dir = contents_directory.join("Resources");
let bin_dir = contents_directory.join("MacOS");
std::fs::create_dir_all(&bin_dir)?;

let mut sign_paths = Vec::new();

let bundle_icon_file = util::create_icns_file(&resources_dir, config)?;
Expand Down Expand Up @@ -70,8 +72,6 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {
}));

tracing::debug!("Copying binaries");
let bin_dir = contents_directory.join("MacOS");
std::fs::create_dir_all(&bin_dir)?;
for bin in &config.binaries {
let bin_path = config.binary_path(bin);
let dest_path = bin_dir.join(&bin.filename);
Expand Down

0 comments on commit c5a7ec0

Please sign in to comment.