From efb3be15b17ee92ec899757bf95d8c5584d7bdbc Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 29 Jan 2020 23:42:37 +0900 Subject: Add Windows installer for pyls-ms --- installer/install-pyls-ms.cmd | 19 +++++++++++++++++++ installer/install-pyls-ms.sh | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 installer/install-pyls-ms.cmd 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 <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 -- cgit v1.2.3-54-g00ecf