aboutsummaryrefslogtreecommitdiff
path: root/installer/install-ra_lsp_server.sh
blob: 7b5ad9a9282385099cacfa0d72d60bf7199b571e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -e

os=$(uname -s | tr "[:upper:]" "[:lower:]")

case $os in
linux)
  platform="linux"
  ;;
darwin)
  platform="mac"
  ;;
esac

version="2020-01-29"
curl -L -o ra_lsp_server-$platform "https://github.com/rust-analyzer/rust-analyzer/releases/download/$version/ra_lsp_server-$platform"

mv ra_lsp_server-$platform ra_lsp_server
chmod +x ra_lsp_server