mirror of https://github.com/coder/coder.git
24 lines
446 B
Bash
Executable File
24 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
|
PROJECT_ROOT=$(cd "$SCRIPT_DIR" && git rev-parse --show-toplevel)
|
|
|
|
(
|
|
cd "${PROJECT_ROOT}"
|
|
|
|
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"
|
|
)
|