mirror of
https://github.com/desktop/desktop
synced 2024-09-17 23:21:55 +00:00
Download the certificate on macOS
This commit is contained in:
parent
1338f8c4ae
commit
9dcde259ec
|
@ -57,6 +57,10 @@ const options = {
|
|||
}
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
cp.execSync('setup-macos-keychain')
|
||||
}
|
||||
|
||||
packager(options, (error, appPaths) => {
|
||||
if (error) {
|
||||
console.error(error)
|
||||
|
|
11
script/setup-macos-keychain
Executable file
11
script/setup-macos-keychain
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -H 'Authorization: token $DESKTOPBOT_TOKEN' -H 'Accept: application/vnd.github.v3.raw' -O -L https://api.github.com/repos/desktop/desktop-secrets/developer-id-cert.p12
|
||||
|
||||
KEY_CHAIN=mac-build.keychain
|
||||
security create-keychain -p travis $KEY_CHAIN
|
||||
security default-keychain -s $KEY_CHAIN
|
||||
security unlock-keychain -p travis $KEY_CHAIN
|
||||
security set-keychain-settings -t 3600 -u $KEY_CHAIN
|
||||
|
||||
security import developer-id-cert.p12 -k $KEY_CHAIN -P $KEY_PASSWORD -T /usr/bin/codesign
|
Loading…
Reference in a new issue