diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-29 23:42:37 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-29 23:42:37 +0900 |
commit | efb3be15b17ee92ec899757bf95d8c5584d7bdbc (patch) | |
tree | 12a4b7726ad39389ade4c618521c87edecd5d803 /installer | |
parent | 085fc82ade226146a15acd2145453093d8373051 (diff) | |
download | vim-lsp-settings-efb3be15b17ee92ec899757bf95d8c5584d7bdbc.tar.gz vim-lsp-settings-efb3be15b17ee92ec899757bf95d8c5584d7bdbc.tar.bz2 vim-lsp-settings-efb3be15b17ee92ec899757bf95d8c5584d7bdbc.zip |
Add Windows installer for pyls-ms
Diffstat (limited to 'installer')
-rw-r--r-- | installer/install-pyls-ms.cmd | 19 | ||||
-rwxr-xr-x | installer/install-pyls-ms.sh | 2 |
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 |