diff options
Diffstat (limited to 'installer/install-analysis-server-dart-snapshot.sh')
-rw-r--r-- | installer/install-analysis-server-dart-snapshot.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/installer/install-analysis-server-dart-snapshot.sh b/installer/install-analysis-server-dart-snapshot.sh new file mode 100644 index 0000000..c38c29d --- /dev/null +++ b/installer/install-analysis-server-dart-snapshot.sh @@ -0,0 +1,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 |