Release 3.8.0.2: app.zip updates, lock hygiene, secret-safe getState.
This commit is contained in:
@@ -178,12 +178,15 @@ func signAppBundle(appRoot string) error {
|
||||
if _, err := exec.LookPath("codesign"); err != nil {
|
||||
return nil
|
||||
}
|
||||
// Fresh ad-hoc signature; entitlements not required for local/dev builds.
|
||||
cmd := exec.Command("codesign", "-s", "-", "--force", "--deep", "--options", "runtime", appRoot)
|
||||
// NAVIS_CODESIGN_IDENTITY=Developer ID Application: … for release; default ad-hoc "-".
|
||||
identity := strings.TrimSpace(os.Getenv("NAVIS_CODESIGN_IDENTITY"))
|
||||
if identity == "" {
|
||||
identity = "-"
|
||||
}
|
||||
cmd := exec.Command("codesign", "-s", identity, "--force", "--deep", "--options", "runtime", appRoot)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
// --options runtime can fail without a real Developer ID; retry plain ad-hoc.
|
||||
cmd = exec.Command("codesign", "-s", "-", "--force", "--deep", appRoot)
|
||||
cmd = exec.Command("codesign", "-s", identity, "--force", "--deep", appRoot)
|
||||
out, err = cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
return fmt.Errorf("codesign %s: %w: %s", appRoot, err, strings.TrimSpace(string(out)))
|
||||
|
||||
Reference in New Issue
Block a user