浏览代码

build: Enable hardened runtime in Mac codesigning

syncthing/syncthing-macos#111
Jakob Borg 5 年之前
父节点
当前提交
aac3750298
共有 1 个文件被更改,包括 1 次插入1 次删除
  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