diff --git a/crates/packager/src/package/app/mod.rs b/crates/packager/src/package/app/mod.rs index faf6f8c0..3edaab49 100644 --- a/crates/packager/src/package/app/mod.rs +++ b/crates/packager/src/package/app/mod.rs @@ -37,6 +37,8 @@ pub(crate) fn package(ctx: &Context) -> crate::Result> { 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)?; @@ -70,8 +72,6 @@ pub(crate) fn package(ctx: &Context) -> crate::Result> { })); 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);