From c8d7356cd809fffee36d9e3542d85b5b08b9bbae Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 2 Jan 2020 20:57:36 +0900 Subject: Add dart language server --- installer/install-analysis-server-dart-snapshot.cmd | 11 +++++++++++ installer/install-analysis-server-dart-snapshot.sh | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 installer/install-analysis-server-dart-snapshot.cmd create mode 100644 installer/install-analysis-server-dart-snapshot.sh (limited to 'installer') diff --git a/installer/install-analysis-server-dart-snapshot.cmd b/installer/install-analysis-server-dart-snapshot.cmd new file mode 100644 index 0000000..a24c936 --- /dev/null +++ b/installer/install-analysis-server-dart-snapshot.cmd @@ -0,0 +1,11 @@ +@echo off + +curl -o "dartsdk-windows-x64-release.zip" "https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-windows-x64-release.zip" +call run_unzip.cmd "dartsdk-windows-x64-release.zip" +del "dartsdk-windows-x64-release.zip" + +echo @echo off ^ + +%%~dp0\bin\dart %%~dp0\snapshots\analysis_server.dart.snapshot --lsp %%* ^ + +> analysis-server-dart-snapshot.cmd 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 < 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 -- cgit v1.2.3-54-g00ecf