Skip to content

Commit

Permalink
switch to gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 14, 2017
1 parent 080d477 commit 2e9633e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ cp -r lib $WORKSPACE

# install node
NODE_BASE=node-v$NODE_VERSION-$PLATFORM
if [ ! -f tmp/$NODE_BASE.tar.xz ]; then
curl -fSLo tmp/$NODE_BASE.tar.xz https://nodejs.org/dist/v$NODE_VERSION/$NODE_BASE.tar.xz
if [ ! -f tmp/$NODE_BASE.tar.gz ]; then
curl -fSLo tmp/$NODE_BASE.tar.gz https://nodejs.org/dist/v$NODE_VERSION/$NODE_BASE.tar.gz
fi
tar -C $WORKSPACE -xf tmp/$NODE_BASE.tar.xz
tar -C $WORKSPACE -xf tmp/$NODE_BASE.tar.gz
mv $WORKSPACE/$NODE_BASE $WORKSPACE/node

# install packages
Expand All @@ -48,9 +48,9 @@ chmod +x heroku

# create tarball
cd ..
tar cf - $HEROKU_BASE | xz -z > $HEROKU_BASE.tar.xz
tar czf $HEROKU_BASE.tar.gz $HEROKU_BASE

SHA256=`shasum -a 256 $HEROKU_BASE.tar.xz | awk {'print \$1'}`
SHA256=`shasum -a 256 $HEROKU_BASE.tar.gz | awk {'print \$1'}`
cat << EOF > $PLATFORM
{
"version": "$VERSION",
Expand Down
4 changes: 2 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ CHANNEL=$1

function release {
./bin/build $PLATFORM
aws s3 cp --quiet --cache-control max-age=86400 tmp/build/heroku-v$VERSION-$PLATFORM.tar.xz s3://heroku-cli-assets/branches/$CHANNEL/heroku-v$VERSION-$PLATFORM.tar.xz
aws s3 cp --quiet --cache-control max-age=300 tmp/build/heroku-v$VERSION-$PLATFORM.tar.xz s3://heroku-cli-assets/branches/$CHANNEL/heroku-$PLATFORM.tar.xz
aws s3 cp --quiet --cache-control max-age=86400 tmp/build/heroku-v$VERSION-$PLATFORM.tar.gz s3://heroku-cli-assets/branches/$CHANNEL/heroku-v$VERSION-$PLATFORM.tar.gz
aws s3 cp --quiet --cache-control max-age=300 tmp/build/heroku-v$VERSION-$PLATFORM.tar.gz s3://heroku-cli-assets/branches/$CHANNEL/heroku-$PLATFORM.tar.gz
aws s3 cp --quiet --cache-control max-age=300 --content-type application/json tmp/build/$PLATFORM s3://heroku-cli-assets/branches/$CHANNEL/$PLATFORM
}

Expand Down
1 change: 1 addition & 0 deletions lib/commands/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Update extends Command {
await got(url, {json: true})
await got(url, {json: true})
await got(url, {json: true})
throw new Error('whoa')
}
}

Expand Down

0 comments on commit 2e9633e

Please sign in to comment.