mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 20:00:15 +10:00
(experiment) disable mac signing
This commit is contained in:
11
build.sh
11
build.sh
@@ -2,13 +2,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
function keep_alive_small() {
|
|
||||||
while true; do
|
|
||||||
echo .
|
|
||||||
read -t 60 < /proc/self/fd/1 > /dev/null 2>&1
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
function keep_alive() {
|
function keep_alive() {
|
||||||
while true; do
|
while true; do
|
||||||
date
|
date
|
||||||
@@ -29,11 +22,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
|||||||
cd vscode || exit
|
cd vscode || exit
|
||||||
|
|
||||||
# these tasks are very slow, so using a keep alive to keep travis alive
|
# these tasks are very slow, so using a keep alive to keep travis alive
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
||||||
keep_alive_small &
|
|
||||||
else
|
|
||||||
keep_alive &
|
keep_alive &
|
||||||
fi
|
|
||||||
|
|
||||||
KA_PID=$!
|
KA_PID=$!
|
||||||
|
|
||||||
|
|||||||
@@ -2,22 +2,22 @@
|
|||||||
|
|
||||||
# thanks to https://www.jviotti.com/2016/03/16/how-to-code-sign-os-x-electron-apps-in-travis-ci.html
|
# 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
|
# for the helpful instructions
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
# if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
# if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
if [ -d "VSCode-darwin" ]; then # just in case the build failed
|
# if [ -d "VSCode-darwin" ]; then # just in case the build failed
|
||||||
cd VSCode-darwin
|
# cd VSCode-darwin
|
||||||
export CERTIFICATE_P12=VSCodium.p12
|
# export CERTIFICATE_P12=VSCodium.p12
|
||||||
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12
|
# echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12
|
||||||
export KEYCHAIN=build.keychain
|
# export KEYCHAIN=build.keychain
|
||||||
security create-keychain -p mysecretpassword $KEYCHAIN
|
# security create-keychain -p mysecretpassword $KEYCHAIN
|
||||||
security default-keychain -s $KEYCHAIN
|
# security default-keychain -s $KEYCHAIN
|
||||||
security unlock-keychain -p mysecretpassword $KEYCHAIN
|
# security unlock-keychain -p mysecretpassword $KEYCHAIN
|
||||||
security import $CERTIFICATE_P12 -k $KEYCHAIN -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
|
# security import $CERTIFICATE_P12 -k $KEYCHAIN -P $CERTIFICATE_OSX_PASSWORD -T /usr/bin/codesign
|
||||||
|
#
|
||||||
# https://docs.travis-ci.com/user/common-build-problems/
|
# # https://docs.travis-ci.com/user/common-build-problems/
|
||||||
security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword $KEYCHAIN
|
# security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword $KEYCHAIN
|
||||||
|
#
|
||||||
codesign --deep --force --verbose --sign "$CERTIFICATE_OSX_ID" VSCodium.app
|
# codesign --deep --force --verbose --sign "$CERTIFICATE_OSX_ID" VSCodium.app
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
|||||||
Reference in New Issue
Block a user