Skip to content

Commit

Permalink
Check unzip command exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 26, 2019
1 parent 965dad7 commit 70d4458
Show file tree
Hide file tree
Showing 25 changed files with 281 additions and 262 deletions.
10 changes: 5 additions & 5 deletions installer/install-bash-language-server.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install bash-language-server bash-language-server
@echo off

cd /d %~dp0

call npm_install bash-language-server bash-language-server
24 changes: 12 additions & 12 deletions installer/install-clojure-lsp.cmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\clojure-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o clojure-lsp.cmd https://github.com/snoe/clojure-lsp/releases/download/release-20191202T142318/clojure-lsp
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\clojure-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o clojure-lsp.cmd https://github.com/snoe/clojure-lsp/releases/download/release-20191202T142318/clojure-lsp
50 changes: 28 additions & 22 deletions installer/install-cobol-language-support.cmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\cobol-language-support
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

set version=0.9.1
set url=https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/%version%/cobol-language-support-%version%.vsix
curl -LO "%url%"
unzip "cobol-language-support-%version%.vsix"

echo @echo off ^

java "-Dline.speparator=\r\n" -jar "%%~dp0\extension\server\lsp-service-cobol-%version%.jar" pipeEnabled ^

> cobol-language-support.cmd

@echo off

where unzip1 2>NUL
if %ERRORLEVEL% neq 0 (
echo unzip command required
exit /b 1
)

setlocal

cd /d %~dp0

set server_dir=..\servers\cobol-language-support
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

set version=0.9.1
set url=https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/%version%/cobol-language-support-%version%.vsix
curl -LO "%url%"
unzip "cobol-language-support-%version%.vsix"

echo @echo off ^

java "-Dline.speparator=\r\n" -jar "%%~dp0\extension\server\lsp-service-cobol-%version%.jar" pipeEnabled ^

> cobol-language-support.cmd

10 changes: 5 additions & 5 deletions installer/install-css-languageserver.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install css-languageserver vscode-css-languageserver-bin
@echo off

cd /d %~dp0

call npm_install css-languageserver vscode-css-languageserver-bin
12 changes: 6 additions & 6 deletions installer/install-docker-langserver.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

cd /d %~dp0

call npm_install docker-langserver dockerfile-language-server-nodejs

@echo off

cd /d %~dp0

call npm_install docker-langserver dockerfile-language-server-nodejs

10 changes: 5 additions & 5 deletions installer/install-elm-language-server.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install elm-language-server "@elm-tooling/elm-language-server"
@echo off

cd /d %~dp0

call npm_install elm-language-server "@elm-tooling/elm-language-server"
38 changes: 19 additions & 19 deletions installer/install-emmylua-ls.cmd
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\emmylua-ls
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o EmmyLua-LS-all.jar "https://ci.appveyor.com/api/buildjobs/54yf9rjvj49494pd/artifacts/EmmyLua-LS%%2Fbuild%%2Flibs%%2FEmmyLua-LS-all.jar"

echo @echo off ^

java -cp %%~dp0/EmmyLua-LS-all.jar com.tang.vscode.MainKt ^

> emmylua-ls.cmd

@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\emmylua-ls
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o EmmyLua-LS-all.jar "https://ci.appveyor.com/api/buildjobs/54yf9rjvj49494pd/artifacts/EmmyLua-LS%%2Fbuild%%2Flibs%%2FEmmyLua-LS-all.jar"

echo @echo off ^

java -cp %%~dp0/EmmyLua-LS-all.jar com.tang.vscode.MainKt ^

> emmylua-ls.cmd

12 changes: 6 additions & 6 deletions installer/install-fortls.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

cd /d %~dp0

call pip_install fortls fortran-language-server

@echo off

cd /d %~dp0

call pip_install fortls fortran-language-server

30 changes: 15 additions & 15 deletions installer/install-gopls.cmd
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\gopls
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u golang.org/x/tools/cmd/gopls
rd /S /Q "src"
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\gopls
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

set GOPATH=%cd%
set GOBIN=%cd%
go get -v -u golang.org/x/tools/cmd/gopls
rd /S /Q "src"
10 changes: 5 additions & 5 deletions installer/install-html-languageserver.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install html-languageserver vscode-json-languageserver-bin
@echo off

cd /d %~dp0

call npm_install html-languageserver vscode-json-languageserver-bin
10 changes: 5 additions & 5 deletions installer/install-intelephense.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install intelephense intelephense
@echo off

cd /d %~dp0

call npm_install intelephense intelephense
10 changes: 5 additions & 5 deletions installer/install-javascript-typescript-langserver.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install javascript-typescript-langserver javascript-typescript-langserver
@echo off

cd /d %~dp0

call npm_install javascript-typescript-langserver javascript-typescript-langserver
10 changes: 5 additions & 5 deletions installer/install-json-languageserver.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call npm_install json-languageserver vscode-json-languageserver-bin
@echo off

cd /d %~dp0

call npm_install json-languageserver vscode-json-languageserver-bin
6 changes: 6 additions & 0 deletions installer/install-kotlin-language-server.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
@echo off

where unzip1 2>NUL
if %ERRORLEVEL% neq 0 (
echo unzip command required
exit /b 1
)

setlocal

cd /d %~dp0
Expand Down
38 changes: 19 additions & 19 deletions installer/install-lsp4xml.cmd
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\lsp4xml
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -LO "https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/0.9.1/org.eclipse.lsp4xml-0.9.1-uber.jar"

echo @echo off ^

java -jar %%~dp0\org.eclipse.lsp4xml-0.9.1-uber.jar ^

> lsp4xml.cmd

@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\lsp4xml
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -LO "https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/0.9.1/org.eclipse.lsp4xml-0.9.1-uber.jar"

echo @echo off ^

java -jar %%~dp0\org.eclipse.lsp4xml-0.9.1-uber.jar ^

> lsp4xml.cmd

32 changes: 16 additions & 16 deletions installer/install-metals.cmd
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\metals
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat

set version="0.7.6"
java %JAVA_OPTS% -jar coursier bootstrap --ttl Inf "org.scalameta:metals_2.12:%version%" -r "bintray:scalacenter/releases" -r "sonatype:public" -r "sonatype:snapshots" -o metals
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\metals
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat

set version="0.7.6"
java %JAVA_OPTS% -jar coursier bootstrap --ttl Inf "org.scalameta:metals_2.12:%version%" -r "bintray:scalacenter/releases" -r "sonatype:public" -r "sonatype:snapshots" -o metals
47 changes: 27 additions & 20 deletions installer/install-omnisharp-lsp.cmd
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
@echo off

setlocal

cd /d %~dp0

set server_dir=..\servers\omnisharp-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.34.9/omnisharp-win-x64.zip"
unzip omnisharp-win-x64.zip
del omnisharp-win-x64.zip

echo @echo off ^

%%~dp0\omnisharp.exe %%* ^

> omnisharp-lsp.cmd
@echo off

where unzip1 2>NUL
if %ERRORLEVEL% neq 0 (
echo unzip command required
exit /b 1
)

setlocal

cd /d %~dp0

set server_dir=..\servers\omnisharp-lsp
if exist %server_dir% rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"

curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.34.9/omnisharp-win-x64.zip"
unzip omnisharp-win-x64.zip
del omnisharp-win-x64.zip

echo @echo off ^

%%~dp0\omnisharp.exe %%* ^

> omnisharp-lsp.cmd

10 changes: 5 additions & 5 deletions installer/install-pyls.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

cd /d %~dp0

call pip_install pyls python-language-server
@echo off

cd /d %~dp0

call pip_install pyls python-language-server
Loading

0 comments on commit 70d4458

Please sign in to comment.