Skip to content

Commit

Permalink
Support using env vars for macOS notarization even if a macOS config …
Browse files Browse the repository at this point in the history
…exists.

Currently there is another related bug in the schema parsing that doesn't allow
actually specifying the notarization authentication parameters in the package metadata
of Cargo.toml, so this change is actually the only way to currently use the notarization
features on macOS.
  • Loading branch information
kevinaboos committed Jun 18, 2024
1 parent 74d6b25 commit 9cce648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/packager/src/package/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ pub(crate) fn package(ctx: &Context) -> crate::Result<Vec<PathBuf>> {
m.notarization_credentials
.clone()
.ok_or_else(|| crate::Error::MissingNotarizeAuthVars)
.or_else(|_| codesign::notarize_auth())
})
.unwrap_or_else(codesign::notarize_auth)
{
Expand Down

0 comments on commit 9cce648

Please sign in to comment.