build: Enable hardened runtime in Mac codesigning

syncthing/syncthing-macos#111
This commit is contained in:
Jakob Borg 2020-05-11 18:16:44 +02:00
parent a94951becd
commit aac3750298

View File

@ -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