Fix the windows arms of the release build scripts (#7986)

This commit is contained in:
denusklo
2026-09-09 05:00:10 +08:00
committed by GitHub
parent 8604302ded
commit 8ab0bec5f3
3 changed files with 9 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ main() {
release_archive() {
local release_name="code-server-$VERSION-$OS-$ARCH"
if [[ $OS == "linux" ]]; then
if [[ $OS == "linux" || $OS == "windows" ]]; then
tar -czf "release-packages/$release_name.tar.gz" --owner=0 --group=0 --transform "s/^$RELEASE_PATH/$release_name/" "$RELEASE_PATH"
else
tar -czf "release-packages/$release_name.tar.gz" -s "/^$RELEASE_PATH/$release_name/" "$RELEASE_PATH"