(experiment) Use npx for create-dmg

This commit is contained in:
Peter Squicciarini
2020-09-14 20:00:16 -07:00
parent 229274f9c8
commit 1435710c16
4 changed files with 7 additions and 6 deletions

View File

@@ -13,6 +13,11 @@ matrix:
env: BUILDARCH=arm env: BUILDARCH=arm
dist: trusty dist: trusty
- os: osx - os: osx
addons:
homebrew:
packages:
- jq
- zip
language: node_js language: node_js
node_js: "12.14.1" node_js: "12.14.1"

View File

@@ -34,7 +34,6 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
yarn gulp minify-vscode yarn gulp minify-vscode
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
npm install --global create-dmg
yarn gulp vscode-darwin-min-ci yarn gulp vscode-darwin-min-ci
elif [[ "$CI_WINDOWS" == "True" ]]; then elif [[ "$CI_WINDOWS" == "True" ]]; then
cp LICENSE.txt LICENSE.rtf # windows build expects rtf license cp LICENSE.txt LICENSE.rtf # windows build expects rtf license

View File

@@ -2,7 +2,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
create-dmg VSCodium.app .. npx create-dmg VSCodium.app ..
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${LATEST_MS_TAG}.dmg" mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${LATEST_MS_TAG}.dmg"
fi fi
cd .. cd ..

View File

@@ -1,9 +1,6 @@
#!/bin/bash #!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
brew update
brew install jq zip
else
sudo apt-get update sudo apt-get update
sudo apt-get install -y fakeroot jq sudo apt-get install -y fakeroot jq
triplet= triplet=