Files
2024-12-16 09:45:56 +09:00

30 lines
437 B
Bash
Executable File

#!/bin/sh
set -e
os="$(uname -s | tr "[:upper:]" "[:lower:]")"
arch=$(uname -m)
case $arch in
x86_64)
arch="x64"
;;
arm64) ;;
*)
printf "%s doesn't supported by bash installer" "$os"
exit 1
;;
esac
case "${os}" in
darwin) ;;
linux) ;;
*)
echo >&2 "$os is not supported"
exit 1
;;
esac
curl -L -o tinymist "https://github.com/Myriad-Dreamin/tinymist/releases/latest/download/tinymist-${os}-${arch}"
chmod +x tinymist