Skip to content

Commit e278960

Browse files
committed
Fix autoupdates for Darwin
1 parent 85ad7e4 commit e278960

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub)
3535
10. Wait for the npm package to be published.
3636
11. Update the homebrew package.
3737
- Send a pull request to [homebrew-core](https://github.com/Homebrew/homebrew-core) with the URL in the [formula](https://github.com/Homebrew/homebrew-core/blob/master/Formula/code-server.rb) updated.
38+
12. Make sure to add a release without the `v` prefix for autoupdate from `3.2.0`.
3839

3940
## dev
4041

ci/build/build-packages.sh

+7
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,16 @@ release_archive() {
3030
local release_name="code-server-$VERSION-$OS-$ARCH"
3131
if [[ $OS == "linux" ]]; then
3232
tar -czf "release-packages/$release_name.tar.gz" --transform "s/^\.\/release-standalone/$release_name/" ./release-standalone
33+
elif [[ $OS == "macos" && $ARCH == "x86_64" ]]; then
34+
# Just exists to make autoupdating from 3.2.0 work again.
35+
mv ./release-standalone "./$release_name"
36+
zip -r "release-packages/$release_name.zip" "./$release_name"
37+
mv "./$release_name" ./release-standalone
38+
return
3339
else
3440
tar -czf "release-packages/$release_name.tar.gz" -s "/^release-standalone/$release_name/" release-standalone
3541
fi
42+
3643
echo "done (release-packages/$release_name)"
3744

3845
release_gcp

0 commit comments

Comments
 (0)