aboutsummaryrefslogtreecommitdiff
path: root/installer/install-analysis-server-dart-snapshot.sh
blob: c38c29d0672020a39260003a887c5f5612446c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/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
#!/bin/sh

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

chmod +x analysis-server-dart-snapshot