mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Sign MacOS binaries (#1060)
This fixes virus warnings when launching Coder on darwin.
This commit is contained in:
Executable
+17
@@ -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
|
||||
Reference in New Issue
Block a user