aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-29 23:47:10 +0900
committerGitHub <noreply@github.com>2020-01-29 23:47:10 +0900
commitd0d14324628db57302349b61e5a699f23e63f326 (patch)
tree27cdc55aa20c2dbfd17756e73cd582f60820da94 /installer
parentbff14e70248a73104cd35dfd5131d8c30f5f99b6 (diff)
parentefb3be15b17ee92ec899757bf95d8c5584d7bdbc (diff)
downloadvim-lsp-settings-d0d14324628db57302349b61e5a699f23e63f326.tar.gz
vim-lsp-settings-d0d14324628db57302349b61e5a699f23e63f326.tar.bz2
vim-lsp-settings-d0d14324628db57302349b61e5a699f23e63f326.zip
Merge pull request #115 from mattn/add-installer-pyls-ms
Add Windows installer for pyls-ms
Diffstat (limited to 'installer')
-rw-r--r--installer/install-pyls-ms.cmd19
-rwxr-xr-xinstaller/install-pyls-ms.sh2
2 files changed, 20 insertions, 1 deletions
diff --git a/installer/install-pyls-ms.cmd b/installer/install-pyls-ms.cmd
new file mode 100644
index 0000000..47d0bd9
--- /dev/null
+++ b/installer/install-pyls-ms.cmd
@@ -0,0 +1,19 @@
+@echo off
+
+setlocal
+
+curl -L -o dotnet-runtime-3.1.1-win-x64.zip "https://download.visualstudio.microsoft.com/download/pr/d9768135-4646-4839-9eea-b404bb940452/8275e4320514bab636b1627c62906ef9/dotnet-runtime-3.1.1-win-x64.zip"
+call "%~dp0\run_unzip.cmd" dotnet-runtime-3.1.1-win-x64.zip
+
+set version=0.5.10
+set url=https://pvsc.blob.core.windows.net/python-language-server-stable/Python-Language-Server-win-x64.%version%.nupkg
+
+set nupkg=./pyls.nupkg
+curl -L %url% -o %nupkg%
+call "%~dp0\run_unzip.cmd" %nupkg%
+
+echo @echo off ^
+
+%%~dp0\Microsoft.Python.LanguageServer.exe %%* ^
+
+> pyls-ms.cmd
diff --git a/installer/install-pyls-ms.sh b/installer/install-pyls-ms.sh
index f771f31..41a3346 100755
--- a/installer/install-pyls-ms.sh
+++ b/installer/install-pyls-ms.sh
@@ -28,7 +28,7 @@ cat <<EOF >pyls-ms
#!/bin/sh
DIR=\$(cd \$(dirname \$0); pwd)
-\$DIR/.dotnet/dotnet exec \$DIR/Microsoft.Python.LanguageServer.dll
+\$DIR/.dotnet/dotnet \$DIR/Microsoft.Python.LanguageServer.dll
EOF
chmod +x pyls-ms