feat: Sign MacOS binaries (#1060)

This fixes virus warnings when launching Coder on darwin.
This commit is contained in:
Kyle Carberry
2022-04-18 14:57:41 -05:00
committed by GitHub
parent a5f36ad4e2
commit 866205c145
4 changed files with 91 additions and 15 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
codesign -s $AC_APPLICATION_IDENTITY -f -v --timestamp --options runtime $1
config="$(mktemp -d)/gon.json"
jq -r --null-input --arg path "$(pwd)/$1" '{
"notarize": [
{
"path": $path,
"bundle_id": "com.coder.cli"
}
]
}' > $config
gon $config