diff --git a/crates/packager/src/package/app/mod.rs b/crates/packager/src/package/app/mod.rs index b828703d..1901413e 100644 --- a/crates/packager/src/package/app/mod.rs +++ b/crates/packager/src/package/app/mod.rs @@ -48,10 +48,13 @@ pub(crate) fn package(ctx: &Context) -> crate::Result> { .macos() .and_then(|macos| macos.signing_identity.as_ref()) { + log::debug!(action = "Codesigning"; "{}", app_bundle_path.display()); codesign::try_sign(&app_bundle_path, identity, config, true)?; + // notarization is required for distribution match codesign::notarize_auth() { Ok(auth) => { + log::debug!(action = "Notarizing"; "{}", app_bundle_path.display()); codesign::notarize(app_bundle_path.clone(), auth, config)?; } Err(e) => { diff --git a/crates/packager/src/package/dmg/mod.rs b/crates/packager/src/package/dmg/mod.rs index c5fd930c..eecf6c2f 100644 --- a/crates/packager/src/package/dmg/mod.rs +++ b/crates/packager/src/package/dmg/mod.rs @@ -136,6 +136,7 @@ pub(crate) fn package(ctx: &Context) -> crate::Result> { .macos() .and_then(|macos| macos.signing_identity.as_ref()) { + log::debug!(action = "Codesigning"; "{}", dmg_path.display()); codesign::try_sign(&dmg_path, identity, config, false)?; } diff --git a/crates/packager/src/package/nsis/mod.rs b/crates/packager/src/package/nsis/mod.rs index 6106c33d..44cb8187 100644 --- a/crates/packager/src/package/nsis/mod.rs +++ b/crates/packager/src/package/nsis/mod.rs @@ -278,7 +278,9 @@ fn build_nsis_app_installer( { let main_binary = config.main_binary()?; let app_exe_source = config.binary_path(main_binary); - codesign::try_sign(&app_exe_source.with_extension("exe"), config)?; + let signing_path = app_exe_source.with_extension("exe"); + log::debug!(action = "Codesigning"; "{}", signing_path.display()); + codesign::try_sign(&signing_path, config)?; } #[cfg(not(target_os = "windows"))] @@ -515,7 +517,10 @@ fn build_nsis_app_installer( std::fs::rename(nsis_output_path, &installer_path)?; #[cfg(target_os = "windows")] - codesign::try_sign(&installer_path, config)?; + { + log::debug!(action = "Codesigning"; "{}", installer_path.display()); + codesign::try_sign(&installer_path, config)?; + } #[cfg(not(target_os = "windows"))] log::warn!("Code signing is currently only supported on Windows hosts, skipping signing the installer..."); diff --git a/crates/packager/src/package/wix/mod.rs b/crates/packager/src/package/wix/mod.rs index 871d1d63..c7b45f2c 100644 --- a/crates/packager/src/package/wix/mod.rs +++ b/crates/packager/src/package/wix/mod.rs @@ -445,8 +445,9 @@ fn build_wix_app_installer(ctx: &Context, wix_path: &Path) -> crate::Result crate::Result