mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Make macOS notarization optional for packaging
This commit is contained in:
parent
c1dc28d32c
commit
bc58206b96
3 changed files with 11 additions and 2 deletions
|
|
@ -66,6 +66,11 @@ func main() {
|
|||
Usage: "Identity to use for codesigning",
|
||||
Destination: &opt.SignIdentity,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "notarize",
|
||||
Usage: "Whether to notarize macOS packages",
|
||||
Destination: &opt.Notarize,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "debug",
|
||||
Usage: "Enable debug logging",
|
||||
|
|
|
|||
|
|
@ -102,8 +102,10 @@ func BuildPkg(opt Options) error {
|
|||
}
|
||||
}
|
||||
|
||||
if err := notarizePkg(generatedPath); err != nil {
|
||||
return err
|
||||
if opt.Notarize {
|
||||
if err := notarizePkg(generatedPath); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
filename := fmt.Sprintf("orbit-osquery_%s_amd64.pkg", opt.Version)
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ type Options struct {
|
|||
Insecure bool
|
||||
// SignIdentity is the codesigning identity to use (only macOS at this time)
|
||||
SignIdentity string
|
||||
// Notarize sets whether macOS packages should be Notarized.
|
||||
Notarize bool
|
||||
}
|
||||
|
||||
func copyFile(srcPath, dstPath string, perm os.FileMode) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue