Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use cloud.zed.dev for install.sh (#42399)
Conrad Irwin378b30eba5da
diff --git a/docs/src/linux.md b/docs/src/linux.mdindex 433891a3e46..715b3a1bab4 100644--- a/docs/src/linux.md+++ b/docs/src/linux.md@@ -72,9 +72,10 @@ If you'd prefer, you can install Zed by downloading our pre-built .tar.gz. ThisDownload the `.tar.gz` file:-- [zed-linux-x86_64.tar.gz](https://zed.dev/api/releases/stable/latest/zed-linux-x86_64.tar.gz) ([preview](https://zed.dev/api/releases/preview/latest/zed-linux-x86_64.tar.gz))-- [zed-linux-aarch64.tar.gz](https://zed.dev/api/releases/stable/latest/zed-linux-aarch64.tar.gz)- ([preview](https://zed.dev/api/releases/preview/latest/zed-linux-aarch64.tar.gz))+- [zed-linux-x86_64.tar.gz](https://cloud.zed.dev/releases/stable/latest/download?asset=zed&arch=x86_64&os=linux&source=docs)+ ([preview](https://cloud.zed.dev/releases/preview/latest/download?asset=zed&arch=x86_64&os=linux&source=docs))+- [zed-linux-aarch64.tar.gz](https://cloud.zed.dev/releases/stable/latest/download?asset=zed&arch=aarch64&os=linux&source=docs)+ ([preview](https://cloud.zed.dev/releases/preview/latest/download?asset=zed&arch=aarch64&os=linux&source=docs))Then ensure that the `zed` binary in the tarball is on your path. The easiest way is to unpack the tarball and create a symlink:diff --git a/script/get-released-version b/script/get-released-versionindex 547026d003e..0fbb2e1757a 100755--- a/script/get-released-version+++ b/script/get-released-version@@ -18,4 +18,4 @@ case $channel in;;esac-curl -s "https://zed.dev/api/releases/latest?asset=zed&os=macos&arch=aarch64$query" | jq -r .version+curl -s "https://cloud.zed.dev/releases/$channel/latest/asset?asset=zed&os=macos&arch=aarch64" | jq -r .versiondiff --git a/script/install.sh b/script/install.shindex feb140c9843..0c2cfa1b74e 100755--- a/script/install.sh+++ b/script/install.sh@@ -82,7 +82,7 @@ linux() {cp "$ZED_BUNDLE_PATH" "$temp/zed-linux-$arch.tar.gz"elseecho "Downloading Zed"- curl "https://zed.dev/api/releases/$channel/latest/zed-linux-$arch.tar.gz" > "$temp/zed-linux-$arch.tar.gz"+ curl "https://cloud.zed.dev/releases/$channel/latest/download?asset=zed&arch=$arch&os=linux&source=install.sh" > "$temp/zed-linux-$arch.tar.gz"fisuffix=""@@ -135,7 +135,7 @@ linux() {macos() {echo "Downloading Zed"- curl "https://zed.dev/api/releases/$channel/latest/Zed-$arch.dmg" > "$temp/Zed-$arch.dmg"+ curl "https://cloud.zed.dev/releases/$channel/latest/download?asset=zed&os=macos&arch=$arch&source=install.sh" > "$temp/Zed-$arch.dmg"hdiutil attach -quiet "$temp/Zed-$arch.dmg" -mountpoint "$temp/mount"app="$(cd "$temp/mount/"; echo *.app)"echo "Installing $app"