Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/scripts/import-macos-signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ security unlock-keychain -p "$keychain_password" "$keychain"

import_identity() {
printf '%s' "$1" | base64 --decode > "$archive"
security import "$archive" -k "$keychain" -P "$2" -T "$3"
local trusted=()
for app in "${@:3}"; do
trusted+=(-T "$app")
done
security import "$archive" -k "$keychain" -P "$2" "${trusted[@]}"
}
import_identity "$APPLE_APPLICATION_CERTIFICATE" "$APPLE_CERTIFICATE_PASSWORD" /usr/bin/codesign
import_identity "$APPLE_INSTALLER_CERTIFICATE" "$APPLE_INSTALLER_CERTIFICATE_PASSWORD" /usr/bin/pkgbuild
# productbuild signs the final PKG; a key it isn't trusted for prompts and hangs headless runners.
import_identity "$APPLE_INSTALLER_CERTIFICATE" "$APPLE_INSTALLER_CERTIFICATE_PASSWORD" /usr/bin/pkgbuild /usr/bin/productbuild
security set-key-partition-list -S apple-tool:,apple:,codesign: -s \
-k "$keychain_password" "$keychain" > /dev/null

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ jobs:
run: bash .github/scripts/import-macos-signing.sh

- name: Build PKG
timeout-minutes: 60
working-directory: frontend
shell: bash
run: pnpm --filter @agentdesktop/desktop-web dist:mac -- --target "${{ matrix.target }}"
Expand Down