zed/script/get-released-version
Conrad Irwin 463c99b503
Fix script/get-released-version (#21489)
Release Notes:

- N/A
2024-12-03 13:56:01 -07:00

21 lines
367 B
Bash
Executable file

#!/bin/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://zed.dev/api/releases/latest?asset=zed&os=macos&arch=aarch64$query" | jq -r .version