mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
There is no need to call node-gyp externally any more.
From npm v1.2.19, the npm_config_disturl is supported to set dist-url for node-gyp, so we don't need to interactive with node-gyp ourselves any more.
This commit is contained in:
@@ -23,13 +23,11 @@ exit_unless_npm_exists
|
||||
|
||||
npm install npm --silent
|
||||
|
||||
NODE_DIR="$HOME/.cefode-gyp"
|
||||
NODE_VERSION="0.10.3"
|
||||
NODE_URL="https://gh-contractor-zcbenz.s3.amazonaws.com/cefode2/dist"
|
||||
if [ ! -d "node_modules/node-gyp" ]; then
|
||||
./node_modules/.bin/npm install node-gyp --silent
|
||||
HOME="$NODE_DIR" ./node_modules/.bin/node-gyp install --target="$NODE_VERSION" --dist-url="$NODE_URL" --arch=ia32
|
||||
fi
|
||||
HOME="$NODE_DIR" ./node_modules/.bin/npm install --target="$NODE_VERSION" --arch=ia32 --silent
|
||||
export npm_config_disturl="https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist"
|
||||
export npm_config_target="0.10.5"
|
||||
export npm_config_arch="ia32"
|
||||
NODE_DIR="$HOME/.atom-shell-gyp"
|
||||
HOME=$NODE_DIR ./node_modules/.bin/npm install --silent
|
||||
|
||||
git submodule --quiet sync
|
||||
git submodule --quiet update --recursive --init
|
||||
|
||||
Reference in New Issue
Block a user