Browse Source

build: Enable hardened runtime in Mac codesigning

syncthing/syncthing-macos#111
Jakob Borg 5 years ago
parent
commit
aac3750298
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.go

+ 1 - 1
build.go

@@ -1144,7 +1144,7 @@ func macosCodesign(file string) {
 	}
 
 	if id := os.Getenv("CODESIGN_IDENTITY"); id != "" {
-		bs, err := runError("codesign", "-s", id, file)
+		bs, err := runError("codesign", "--options=runtime", "-s", id, file)
 		if err != nil {
 			log.Println("Codesign: signing failed:", string(bs))
 			return