-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node.js 10.7.0 and Yarnpkg 1.7.0 (#80)
Four small scripts, each named "build.sh" have been added. These will build a specific version of Node.js or Yarnpkg in the current directory. Symlinks from older macOS to 10.13 are included.
- Loading branch information
Showing
14 changed files
with
94 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash -exu | ||
|
||
# Build Node.js for just this version and architecture. | ||
NODE_VERSION="v10.7.0" | ||
ARCH="linux-x64" | ||
|
||
tarball_name="node-${NODE_VERSION}-${ARCH}" | ||
|
||
# Make it easy to use gnu-tar on Mac, since the default bsdtar that comes with OS X | ||
# is not compatible with gnu-tar. | ||
TAR_CMD="${TAR_CMD:-tar}" | ||
echo "Using tar command '${TAR_CMD}'" | ||
|
||
curl -O https://nodejs.org/dist/${NODE_VERSION}/${tarball_name}.tar.gz | ||
|
||
# Unpack and repack | ||
rm -rf unpack && mkdir unpack && \ | ||
${TAR_CMD} -xzf ${tarball_name}.tar.gz -C unpack && \ | ||
rm ${tarball_name}.tar.gz && \ | ||
mv unpack/${tarball_name} unpack/node && \ | ||
${TAR_CMD} -czf node.tar.gz -C unpack node/ && \ | ||
rm -rf unpack |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v10.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v10.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v10.7.0 |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash -exu | ||
|
||
# Build Node.js for just this version and architecture. | ||
NODE_VERSION="v10.7.0" | ||
ARCH="darwin-x64" | ||
|
||
tarball_name="node-${NODE_VERSION}-${ARCH}" | ||
|
||
# Make it easy to use gnu-tar on Mac, since the default bsdtar that comes with OS X | ||
# is not compatible with gnu-tar. | ||
TAR_CMD="${TAR_CMD:-tar}" | ||
echo "Using tar command '${TAR_CMD}'" | ||
|
||
curl -O https://nodejs.org/dist/${NODE_VERSION}/${tarball_name}.tar.gz | ||
|
||
# Unpack and repack | ||
rm -rf unpack && mkdir unpack && \ | ||
${TAR_CMD} -xzf ${tarball_name}.tar.gz -C unpack && \ | ||
rm ${tarball_name}.tar.gz && \ | ||
mv unpack/${tarball_name} unpack/node && \ | ||
${TAR_CMD} -czf node.tar.gz -C unpack node/ && \ | ||
rm -rf unpack |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v10.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v10.7.0 |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash -exu | ||
|
||
YARNPKG_VERSION="v1.7.0" | ||
|
||
tarball_name="yarn-${YARNPKG_VERSION}" | ||
|
||
# Make it easy to use gnu-tar on Mac, since the default bsdtar that comes with OS X | ||
# is not compatible with gnu-tar. | ||
TAR_CMD="${TAR_CMD:-tar}" | ||
echo "Using tar command '${TAR_CMD}'" | ||
|
||
curl -L -O https://github.com/yarnpkg/yarn/releases/download/${YARNPKG_VERSION}/${tarball_name}.tar.gz | ||
|
||
# Unpack and repack according to Pants runtime expectation. | ||
rm -rf unpack && mkdir unpack && \ | ||
${TAR_CMD} -xzf ${tarball_name}.tar.gz -C unpack && \ | ||
rm ${tarball_name}.tar.gz && \ | ||
mv unpack/${tarball_name} unpack/dist && \ | ||
${TAR_CMD} -czf yarnpkg.tar.gz -C unpack dist/ && \ | ||
rm -rf unpack |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v1.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v1.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v1.7.0 |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash -exu | ||
|
||
YARNPKG_VERSION="v1.7.0" | ||
|
||
tarball_name="yarn-${YARNPKG_VERSION}" | ||
|
||
# Make it easy to use gnu-tar on Mac, since the default bsdtar that comes with OS X | ||
# is not compatible with gnu-tar. | ||
TAR_CMD="${TAR_CMD:-tar}" | ||
echo "Using tar command '${TAR_CMD}'" | ||
|
||
curl -L -O https://github.com/yarnpkg/yarn/releases/download/${YARNPKG_VERSION}/${tarball_name}.tar.gz | ||
|
||
# Unpack and repack according to Pants runtime expectation. | ||
rm -rf unpack && mkdir unpack && \ | ||
${TAR_CMD} -xzf ${tarball_name}.tar.gz -C unpack && \ | ||
rm ${tarball_name}.tar.gz && \ | ||
mv unpack/${tarball_name} unpack/dist && \ | ||
${TAR_CMD} -czf yarnpkg.tar.gz -C unpack dist/ && \ | ||
rm -rf unpack |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v1.7.0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../10.13/v1.7.0 |