mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 20:00:15 +10:00
Sign mac app (#136)
This commit is contained in:
committed by
GitHub
parent
69d8ba45eb
commit
0608a0e812
@@ -27,6 +27,7 @@ script:
|
|||||||
- ./trigger-azure.sh
|
- ./trigger-azure.sh
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
- ./sign_mac_app.sh
|
||||||
- ./create_zip.sh
|
- ./create_zip.sh
|
||||||
- ./sum.sh
|
- ./sum.sh
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
cd VSCode-darwin
|
cd VSCode-darwin
|
||||||
zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*
|
zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*.app
|
||||||
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
cd VSCode-linux-ia32
|
cd VSCode-linux-ia32
|
||||||
tar czf ../VSCodium-linux-ia32-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-ia32-${LATEST_MS_TAG}.tar.gz .
|
||||||
|
|||||||
23
sign_mac_app.sh
Executable file
23
sign_mac_app.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# thanks to https://www.jviotti.com/2016/03/16/how-to-code-sign-os-x-electron-apps-in-travis-ci.html
|
||||||
|
# for the helpful instructions
|
||||||
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
|
if [ -d "VSCode-darwin" ]; then # just in case the build failed
|
||||||
|
cd VSCode-darwin
|
||||||
|
export CERTIFICATE_P12=VSCodium.p12
|
||||||
|
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12
|
||||||
|
export KEYCHAIN=build.keychain
|
||||||
|
security create-keychain -p mysecretpassword $KEYCHAIN
|
||||||
|
security default-keychain -s $KEYCHAIN
|
||||||
|
security unlock-keychain -p mysecretpassword $KEYCHAIN
|
||||||
|
security import $CERTIFICATE_P12 -k $KEYCHAIN -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
|
||||||
|
|
||||||
|
# https://docs.travis-ci.com/user/common-build-problems/
|
||||||
|
security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword $KEYCHAIN
|
||||||
|
|
||||||
|
codesign --deep --force --verbose --sign "$CERTIFICATE_OSX_ID" VSCodium.app
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user