mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
889bae6c78
Reusable build workflow
19 lines
626 B
Bash
Executable file
19 lines
626 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
base64 -D <<<"$APPLE_APPLICATION_CERT" > "$RUNNER_TEMP/cert.p12"
|
|
|
|
KEY_CHAIN=mac-build.keychain
|
|
security create-keychain -p travis $KEY_CHAIN
|
|
security import "$RUNNER_TEMP/cert.p12" -k $KEY_CHAIN -P $KEY_PASSWORD -T /usr/bin/codesign
|
|
|
|
security list-keychain -s $KEY_CHAIN
|
|
security unlock-keychain -p travis $KEY_CHAIN
|
|
security set-keychain-settings -t 3600 -u $KEY_CHAIN
|
|
|
|
security default-keychain -s $KEY_CHAIN
|
|
|
|
# set key partition list to avoid UI permission popup that causes hanging at CI
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k travis $KEY_CHAIN
|
|
|
|
rm "$RUNNER_TEMP/cert.p12"
|