Files
atom/script/bootstrap
Kevin Sawicki f3990722e3 Install node-gyp with custom node distribution
This should be done before the rest of the dependencies
are installed to that the correct headers are used for
compiling native modules.
2013-03-11 15:38:15 -07:00

25 lines
702 B
Bash
Executable File

#!/bin/sh
exit_unless_xcode_exists() {
if [ ! -d /Applications/Xcode.app ]; then
echo "ERROR: Atom requires Xcode"
echo "You must to download Xcode from the App Store (http://itunes.apple.com/us/app/xcode/id497799835)"
exit 1
fi
}
exit_unless_npm_exists() {
if ! hash npm 2> /dev/null; then
echo "ERROR: Atom requires npm"
exit 1
fi
}
exit_unless_xcode_exists
exit_unless_npm_exists
npm install node-gyp
HOME=~/.cefode-gyp node-gyp install --target=0.8.21 --dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/cefode/dist --arch=ia32
HOME=~/.cefode-gyp npm install --target=0.8.21 --arch=ia32
git submodule --quiet sync
git submodule --quiet update --recursive --init