Files
zed/script/get-released-version
Conrad Irwin 378b30eba5 Use cloud.zed.dev for install.sh (#42399)
Similar to #42246, we'd like to avoid having Vercel on the critical
path.

https://zed.dev/install.sh is served from Cloudflare by intercepting a
route on that page, so this makes the shell-based install flow vercel independent.

Release Notes:

- `./script/install.sh` will now fetch assets via
`https://cloud.zed.dev/`
instead of `https://zed.dev`. As before it will redirect to GitHub
releases
  to complete the download.
2025-11-10 23:55:19 +00:00

22 lines
386 B
Bash
Executable File

#!/usr/bin/env bash
channel="$1"
query=""
case $channel in
stable)
;;
preview)
query="&preview=1"
;;
nightly)
query="&nightly=1"
;;
*)
echo "this must be run on either of stable|preview|nightly release branches" >&2
exit 1
;;
esac
curl -s "https://cloud.zed.dev/releases/$channel/latest/asset?asset=zed&os=macos&arch=aarch64" | jq -r .version