aboutsummaryrefslogtreecommitdiff
path: root/installer/install-analysis-server-dart-snapshot.sh
blob: 59ae19689558204fc7164372a0a37f03deba3658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -e

curl -o "dartsdk-linux-x64-release.zip" "https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-linux-x64-release.zip"
unzip "dartsdk-linux-x64-release.zip"
rm "dartsdk-linux-x64-release.zip"

cat <<EOF > analysis-server-dart-snapshot
#!/usr/bin/env bash

DIR=\$(cd \$(dirname \$0); pwd)
\$DIR/bin/dart \$DIR/bin/snapshots/analysis_server.dart.snapshot --lsp \$*
EOF

chmod +x analysis-server-dart-snapshot