Skip to content

Commit

Permalink
Use .tar.gz for macOS releases
Browse files Browse the repository at this point in the history
No good reason to use .zip, was just confusion on my part.
  • Loading branch information
nhooyr committed May 16, 2020
1 parent 611cde7 commit d563816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 4 additions & 9 deletions ci/build/build-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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.
Expand Down

0 comments on commit d563816

Please sign in to comment.