(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
No known key found for this signature in database
GPG key ID: B93D26A09E953403
4 changed files with 7 additions and 6 deletions

View file

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

View file

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

View file

@ -2,7 +2,7 @@
if [[ "$SHOULD_BUILD" == "yes" ]]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd VSCode-darwin
create-dmg VSCodium.app ..
npx create-dmg VSCodium.app ..
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${LATEST_MS_TAG}.dmg"
fi
cd ..

View file

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