Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions build-node.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
#!/bin/sh

VERSION=${1-:"v8.6.0"}
VERSION=${1-:"v12.18.2"}

CURRENT_MAC_VERSION="10.13"
CURRENT_MAC_VERSION="10.15"

ADDITIONAL_MAC_VERSIONS=(
10.6
10.7
10.8
10.9
10.10
10.11
10.12
10.13
10.14
)

# ARCHES and DESTINATION_DIRECTORIES must be the same length.
Expand Down
22 changes: 22 additions & 0 deletions build-support/bin/node/linux/x86_64/v12.18.2/build.sh
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="v12.18.2"
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
22 changes: 22 additions & 0 deletions build-support/bin/node/mac/10.13/v12.18.2/build.sh
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="v12.18.2"
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
22 changes: 22 additions & 0 deletions build-support/bin/node/mac/10.14/v12.18.2/build.sh
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="v12.18.2"
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
22 changes: 22 additions & 0 deletions build-support/bin/node/mac/10.15/v12.18.2/build.sh
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.
Copy link
Contributor

@cosmicexplorer cosmicexplorer Jul 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please symlink the older OSX directories to this one as in this section of the readme? Thanks!!

NODE_VERSION="v12.18.2"
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