forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-node-for-dev-bundle.sh
More file actions
executable file
·40 lines (31 loc) · 1013 Bytes
/
Copy pathbuild-node-for-dev-bundle.sh
File metadata and controls
executable file
·40 lines (31 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
set -e
set -u
# When upgrading node versions, also update the values of MIN_NODE_VERSION at
# the top of tools/main.js and tools/server/boot.js, and the text in
# docs/client/full-api/concepts.html and the README in tools/bundler.js.
NODE_VERSION=0.10.36
source "$(dirname $0)/build-dev-bundle-common.sh"
echo CHECKOUT DIR IS "$CHECKOUT_DIR"
echo BUILDING NODE "v$NODE_VERSION" IN "$DIR"
# For now, use our fork with https://github.com/npm/npm/pull/5821
git clone --branch "v${NODE_VERSION}-with-npm-5821" --depth 1 \
https://github.com/meteor/node.git
cd node
rm -rf .git
./configure --prefix="$DIR"
make -j4
make install PORTABLE=1
# PORTABLE=1 is a node hack to make npm look relative to itself instead
# of hard coding the PREFIX.
cd "$DIR"
stripBinary bin/node
# export path so we use our new node for later builds
PATH="$DIR/bin:$PATH"
which node
which npm
echo BUNDLING
cd "$DIR"
rm -rf build
tar czvf "${CHECKOUT_DIR}/node_${PLATFORM}_v${NODE_VERSION}.tar.gz" .
echo DONE