Use .tar.gz for macOS releases
No good reason to use .zip, was just confusion on my part.
This commit is contained in:
parent
611cde7202
commit
d56381666a
|
@ -72,7 +72,7 @@ docker run -it -p 127.0.0.1:8080:8080 \
|
||||||
|
|
||||||
### Self contained releases
|
### 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.
|
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)
|
1. Download the latest release archive for your system from [github](https://github.com/cdr/code-server/releases)
|
||||||
|
|
|
@ -20,15 +20,10 @@ main() {
|
||||||
local archive_name="code-server-$VERSION-$OS-$ARCH"
|
local archive_name="code-server-$VERSION-$OS-$ARCH"
|
||||||
mkdir -p release-packages
|
mkdir -p release-packages
|
||||||
|
|
||||||
local ext
|
|
||||||
if [[ $OS == "linux" ]]; then
|
if [[ $OS == "linux" ]]; then
|
||||||
ext=".tar.gz"
|
tar -czf "release-packages/$archive_name.tar.gz" --transform "s/^\.\/release-static/$archive_name/" ./release-static
|
||||||
tar -czf "release-packages/$archive_name$ext" --transform "s/^\.\/release-static/$archive_name/" ./release-static
|
|
||||||
else
|
else
|
||||||
mv ./release-static "./$archive_name"
|
tar -czf "release-packages/$archive_name.tar.gz" -s "/^release-static/$archive_name/" release-static
|
||||||
ext=".zip"
|
|
||||||
zip -r "release-packages/$archive_name$ext" "./$archive_name"
|
|
||||||
mv "./$archive_name" ./release-static
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "done (release-packages/$archive_name)"
|
echo "done (release-packages/$archive_name)"
|
||||||
|
@ -42,9 +37,9 @@ main() {
|
||||||
|
|
||||||
release_gcp() {
|
release_gcp() {
|
||||||
mkdir -p "release-gcp/$VERSION"
|
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"
|
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.
|
# Generates deb and rpm packages.
|
||||||
|
|
Loading…
Reference in New Issue