aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-emmylua-ls.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/installer/install-emmylua-ls.sh b/installer/install-emmylua-ls.sh
new file mode 100755
index 0000000..8de6d53
--- /dev/null
+++ b/installer/install-emmylua-ls.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname $0)
+[ -d ../servers/emmylua-ls ] && rm -rf ../servers/emmylua-ls
+mkdir ../servers/emmylua-ls
+cd ../servers/emmylua-ls
+curl -L -o EmmyLua-LS-all.jar 'https://ci.appveyor.com/api/buildjobs/54yf9rjvj49494pd/artifacts/EmmyLua-LS%2Fbuild%2Flibs%2FEmmyLua-LS-all.jar'
+
+cat <<EOF > emmylua-ls
+#!/bin/sh
+
+DIR=\$(cd \$(dirname \$0); pwd)
+java -cp \$DIR/EmmyLua-LS-all.jar com.tang.vscode.MainKt
+EOF
+
+chmod +x emmylua-ls