mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Import macOS dev id certificate in TravisCI.
This commit is contained in:
parent
0e4eae76d6
commit
6e83ad80ad
2 changed files with 28 additions and 0 deletions
27
.travis.macos.import_certificate.sh
Executable file
27
.travis.macos.import_certificate.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
#Source: https://github.com/rllola/electron-example/blob/master/add-osx-cert.sh
|
||||
|
||||
set -e
|
||||
|
||||
KEY_CHAIN=build.keychain
|
||||
CERTIFICATE_P12=certificate.p12
|
||||
|
||||
# Recreate the certificate from the secure environment variable
|
||||
echo $MACOS_DEVID_CERTIFICATE | base64 --decode > $CERTIFICATE_P12
|
||||
|
||||
#create a keychain
|
||||
security create-keychain -p travis $KEY_CHAIN
|
||||
|
||||
# Make the keychain the default so identities are found
|
||||
security default-keychain -s $KEY_CHAIN
|
||||
|
||||
# Unlock the keychain
|
||||
security unlock-keychain -p travis $KEY_CHAIN
|
||||
|
||||
security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $MACOS_DEVID_CERTIFICATE_PASSWORD -T /usr/bin/codesign;
|
||||
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k travis $KEY_CHAIN
|
||||
|
||||
# remove certs
|
||||
rm -fr *.p12
|
|
@ -28,6 +28,7 @@ travis_before_install()
|
|||
sudo apt-get update -y
|
||||
sudo apt-get install -y clang-format-6.0
|
||||
elif [ "$TARGET_OS" = "OSX" ]; then
|
||||
./.travis.macos.import_certificate.sh
|
||||
npm install -g appdmg
|
||||
curl -L --show-error --output vulkansdk.tar.gz https://vulkan.lunarg.com/sdk/download/${VULKAN_SDK_VERSION}/mac/vulkansdk-macos-${VULKAN_SDK_VERSION}.tar.gz?Human=true
|
||||
tar -zxf vulkansdk.tar.gz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue