File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
crates/packager/src/codesign Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " cargo-packager " : patch
3+ " @crabnebula/packager " : patch
4+ ---
5+
6+ Fix bug that prevents reading macos signing certificates from environment variables.
Original file line number Diff line number Diff line change @@ -171,13 +171,13 @@ impl PartialOrd for SignTarget {
171171pub fn try_sign ( targets : Vec < SignTarget > , identity : & str , config : & Config ) -> crate :: Result < ( ) > {
172172 let certificate_encoded = config
173173 . macos ( )
174- . map ( |m| m. signing_certificate . clone ( ) )
175- . unwrap_or_else ( || std:: env:: var_os ( "APPLE_CERTIFICATE" ) ) ;
174+ . and_then ( |m| m. signing_certificate . clone ( ) )
175+ . or_else ( || std:: env:: var_os ( "APPLE_CERTIFICATE" ) ) ;
176176
177177 let certificate_password = config
178178 . macos ( )
179- . map ( |m| m. signing_certificate_password . clone ( ) )
180- . unwrap_or_else ( || std:: env:: var_os ( "APPLE_CERTIFICATE_PASSWORD" ) ) ;
179+ . and_then ( |m| m. signing_certificate_password . clone ( ) )
180+ . or_else ( || std:: env:: var_os ( "APPLE_CERTIFICATE_PASSWORD" ) ) ;
181181
182182 let packager_keychain = if let ( Some ( certificate_encoded) , Some ( certificate_password) ) =
183183 ( certificate_encoded, certificate_password)
You can’t perform that action at this time.
0 commit comments