-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis: fix macOS build due to the old default version of Node.js
appdmg recently dropped support for Node.js < 8.5
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
brew update | ||
|
||
# appdmg doesn't work with old versions of Node.js | ||
nvm install --lts | ||
|
||
# Avoid permission issues with npm and node-gyp | ||
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally | ||
mkdir ~/.npm-global | ||
npm config set prefix '~/.npm-global' | ||
export PATH=~/.npm-global/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ if [ -z "$QT5" ]; then | |
brew install qt@4 | ||
fi | ||
|
||
sudo npm install -g appdmg | ||
npm install -g appdmg |