(experiment) re-enable everything(?) and remove Mac stuff from Travis
This commit is contained in:
parent
dacb759766
commit
a975177d1d
5 changed files with 39 additions and 31 deletions
17
.github/workflows/macos.yml
vendored
17
.github/workflows/macos.yml
vendored
|
@ -36,11 +36,21 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
||||||
|
- name: Sign binary
|
||||||
|
run: ./sign_mac_app.sh
|
||||||
|
env:
|
||||||
|
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
|
||||||
|
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
||||||
|
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
||||||
|
|
||||||
- name: Zip release
|
- name: Zip release
|
||||||
run: ./create_zip.sh
|
run: ./create_zip.sh
|
||||||
|
|
||||||
- name: DMG the release
|
- name: DMG the release
|
||||||
run: ./create_dmg.sh
|
run: ./create_dmg.sh
|
||||||
|
|
||||||
|
- name: Generate shasums
|
||||||
|
run: ./sum.sh
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
@ -54,3 +64,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Update versions repo
|
||||||
|
if: env.SHOULD_BUILD == 'yes'
|
||||||
|
run: ./update_version.sh
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ language: node_js
|
||||||
node_js: "12.14.1"
|
node_js: "12.14.1"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- node getpwd.js
|
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
- . install_deps.sh
|
- . install_deps.sh
|
||||||
|
@ -25,9 +24,6 @@ script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- ./sign_mac_app.sh
|
|
||||||
- ./create_zip.sh
|
|
||||||
- ./create_dmg.sh
|
|
||||||
- ./sum.sh
|
- ./sum.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -41,7 +37,6 @@ deploy:
|
||||||
- ./*.sha256
|
- ./*.sha256
|
||||||
- ./*.zip
|
- ./*.zip
|
||||||
- ./*.tar.gz
|
- ./*.tar.gz
|
||||||
- ./*.dmg
|
|
||||||
- ./*.deb
|
- ./*.deb
|
||||||
- ./*.rpm
|
- ./*.rpm
|
||||||
- ./*.AppImage
|
- ./*.AppImage
|
||||||
|
@ -50,5 +45,5 @@ deploy:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
condition: $SHOULD_BUILD = yes
|
condition: $SHOULD_BUILD = yes
|
||||||
|
|
||||||
#after_deploy:
|
after_deploy:
|
||||||
#- ./update_version.sh
|
- ./update_version.sh
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
const pwd = process.env.CERTIFICATE_OSX_PASSWORD
|
|
||||||
|
|
||||||
console.log(pwd.slice(0, Math.floor(pwd.length / 2)))
|
|
||||||
console.log(pwd.slice(Math.floor(pwd.length / 2)))
|
|
|
@ -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
|
||||||
|
|
|
@ -34,7 +34,7 @@ if [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
git config --global core.autocrlf true
|
git config --global core.autocrlf true
|
||||||
else
|
else
|
||||||
# TRAVIS_REPO_SLUG = e.g. VSCodium/vscodium
|
# TRAVIS_REPO_SLUG = e.g. VSCodium/vscodium
|
||||||
VERSIONS_REPO=$(echo ${TRAVIS_REPO_SLUG} | awk -F"/" '{ print $1 }')/versions
|
VERSIONS_REPO=$(echo ${TRAVIS_REPO_SLUG:-${GITHUB_REPOSITORY}} | awk -F"/" '{ print $1 }')/versions
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# generateJson <assetName>
|
# generateJson <assetName>
|
||||||
|
|
Loading…
Reference in a new issue