From d56381666a30cfac54c448a01da1097db5ea20c0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sat, 16 May 2020 10:01:26 -0400 Subject: [PATCH] Use .tar.gz for macOS releases No good reason to use .zip, was just confusion on my part. --- README.md | 2 +- ci/build/build-packages.sh | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7232c82da..9af21d041 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ docker run -it -p 127.0.0.1:8080:8080 \ ### Self contained releases -We publish self contained archives for every release on [github](https://github.com/cdr/code-server/releases). +We publish self contained `.tar.gz` archives for every release on [github](https://github.com/cdr/code-server/releases). They bundle the node binary and compiled native modules. 1. Download the latest release archive for your system from [github](https://github.com/cdr/code-server/releases) diff --git a/ci/build/build-packages.sh b/ci/build/build-packages.sh index dc7f61680..f08076676 100755 --- a/ci/build/build-packages.sh +++ b/ci/build/build-packages.sh @@ -20,15 +20,10 @@ main() { local archive_name="code-server-$VERSION-$OS-$ARCH" mkdir -p release-packages - local ext if [[ $OS == "linux" ]]; then - ext=".tar.gz" - tar -czf "release-packages/$archive_name$ext" --transform "s/^\.\/release-static/$archive_name/" ./release-static + tar -czf "release-packages/$archive_name.tar.gz" --transform "s/^\.\/release-static/$archive_name/" ./release-static else - mv ./release-static "./$archive_name" - ext=".zip" - zip -r "release-packages/$archive_name$ext" "./$archive_name" - mv "./$archive_name" ./release-static + tar -czf "release-packages/$archive_name.tar.gz" -s "/^release-static/$archive_name/" release-static fi echo "done (release-packages/$archive_name)" @@ -42,9 +37,9 @@ main() { release_gcp() { mkdir -p "release-gcp/$VERSION" - cp "release-packages/$archive_name$ext" "./release-gcp/$VERSION/$OS-$ARCH$ext" + cp "release-packages/$archive_name.tar.gz" "./release-gcp/$VERSION/$OS-$ARCH.tar.gz" mkdir -p "release-gcp/latest" - cp "./release-packages/$archive_name$ext" "./release-gcp/latest/$OS-$ARCH$ext" + cp "./release-packages/$archive_name.tar.gz" "./release-gcp/latest/$OS-$ARCH.tar.gz" } # Generates deb and rpm packages.