diff --git a/README.md b/README.md index 7232c82d..9af21d04 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 dc7f6168..f0807667 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.