Files
vim-lsp-settings-mirror/installer/install-systemd-lsp.sh
Yasuhiro Matsumoto 854c272ce0 add systemd-lsp
2025-07-14 11:36:22 +09:00

36 lines
684 B
Bash
Executable File

#!/bin/sh
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
arch="$(uname -m)"
case $os in
linux)
if [ "$arch" = "x86_64" ]; then
file="systemd-lsp-x86_64-unknown-linux-gnu"
else
echo "unknown architecture: $arch"
exit 1
fi
;;
darwin)
if [ "$arch" = "x86_64" ]; then
file="systemd-lsp-x86_64-apple-darwin"
elif [ "$arch" = "aarch64" ] || [ "$arch" = "arm64" ]; then
file="systemd-lsp-aarch64-apple-darwin"
else
echo "unknown architecture: $arch"
exit 1
fi
;;
*)
echo "unknow platform: $os"
exit 1
;;
esac
curl -L -o "systemd-lsp" "https://github.com/JFryy/systemd-lsp/releases/download/v2025.07.10/$file"
chmod +x systemd-lsp