aboutsummaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2020-05-11 18:16:44 +0200
committerJakob Borg <jakob@kastelo.net>2020-05-11 18:19:39 +0200
commitaac3750298b2baefcd8caaa4f37cdf9450d979c9 (patch)
tree1b4e66b5685228d32d0cb05407249b0197880f4f /build.go
parenta94951becdd7bc2de1cee34d603db3aa92e0fba7 (diff)
downloadsyncthing-aac3750298b2baefcd8caaa4f37cdf9450d979c9.tar.gz
syncthing-aac3750298b2baefcd8caaa4f37cdf9450d979c9.zip
build: Enable hardened runtime in Mac codesigning
syncthing/syncthing-macos#111
Diffstat (limited to 'build.go')
-rw-r--r--build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.go b/build.go
index 20e9cdc4e..430fc24d4 100644
--- a/build.go
+++ b/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