Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build scripts and symlinks for Yarnpkg 1.12.3 #89

Merged
merged 1 commit into from
Nov 20, 2018
Merged
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
20 changes: 20 additions & 0 deletions build-support/bin/yarnpkg/linux/x86_64/v1.12.3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash -exu

YARNPKG_VERSION="v1.12.3"

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
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.10/v1.12.3
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.11/v1.12.3
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.12/v1.12.3
20 changes: 20 additions & 0 deletions build-support/bin/yarnpkg/mac/10.13/v1.12.3/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash -exu

YARNPKG_VERSION="v1.12.3"

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
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.14/v1.12.3
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.8/v1.12.3
1 change: 1 addition & 0 deletions build-support/bin/yarnpkg/mac/10.9/v1.12.3