Skip to content

Commit

Permalink
Travis: fix macOS build due to the old default version of Node.js
Browse files Browse the repository at this point in the history
appdmg recently dropped support for Node.js < 8.5
  • Loading branch information
PhysSong committed Jun 6, 2019
1 parent 359de20 commit c37228c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis/osx..before_install.sh
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
2 changes: 1 addition & 1 deletion .travis/osx..install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ if [ -z "$QT5" ]; then
brew install qt@4
fi

sudo npm install -g appdmg
npm install -g appdmg

0 comments on commit c37228c

Please sign in to comment.