Skip to content

Commit 39ef40d

Browse files
Skip singing when the sign parameters are empty
Issue: #7
1 parent 406dee8 commit 39ef40d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/mac/sign_tool_mac.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ func GetSignToolMac(params common.BrandingParams) (*SignToolMac, error) {
3939

4040
// Signs the Chromium binaries located at `binaryPath`.
4141
func (tool *SignToolMac) SignBinary(binaryPath string) error {
42+
// Skip signing and verifying if the identity is not set.
43+
if base.GetValue(tool.params.Mac.CodesignIdentity) == "" {
44+
return nil
45+
}
4246
if err := tool.sign(binaryPath); err != nil {
4347
return err
44-
} else if err := tool.verify(binaryPath); err != nil {
48+
}
49+
if err := tool.verify(binaryPath); err != nil {
4550
return err
4651
}
4752
return nil

0 commit comments

Comments
 (0)