From 909dd52c959e14f16cd501a767724c35dad4fc37 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 26 Dec 2019 15:40:41 +0900 Subject: Download unzip.exe --- installer/install-cobol-language-support.cmd | 9 ++------- installer/install-kotlin-language-server.cmd | 9 ++------- installer/install-omnisharp-lsp.cmd | 9 ++------- 3 files changed, 6 insertions(+), 21 deletions(-) (limited to 'installer') diff --git a/installer/install-cobol-language-support.cmd b/installer/install-cobol-language-support.cmd index 76c1a2c..39959a1 100644 --- a/installer/install-cobol-language-support.cmd +++ b/installer/install-cobol-language-support.cmd @@ -1,15 +1,10 @@ @echo off -where unzip1 2>NUL -if %ERRORLEVEL% neq 0 ( - echo unzip command required - exit /b 1 -) - setlocal cd /d %~dp0 +set installer_dir=%cd% set server_dir=..\servers\cobol-language-support if exist %server_dir% rd /Q /S "%server_dir%" md "%server_dir%" @@ -18,7 +13,7 @@ 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" +call %installer_dir%\run_unzip "cobol-language-support-%version%.vsix" echo @echo off ^ diff --git a/installer/install-kotlin-language-server.cmd b/installer/install-kotlin-language-server.cmd index 6e5fae5..11d141c 100644 --- a/installer/install-kotlin-language-server.cmd +++ b/installer/install-kotlin-language-server.cmd @@ -1,22 +1,17 @@ @echo off -where unzip1 2>NUL -if %ERRORLEVEL% neq 0 ( - echo unzip command required - exit /b 1 -) - setlocal cd /d %~dp0 +set installer_dir=%cd% set server_dir=..\servers\kotlin-language-server if exist %server_dir% rd /Q /S "%server_dir%" md "%server_dir%" cd /d "%server_dir%" curl -L -o server.zip "https://github.com/fwcd/kotlin-language-server/releases/download/0.5.2/server.zip" -unzip server.zip +call %installer_dir%\run_unzip server.zip del server.zip echo @echo off ^ diff --git a/installer/install-omnisharp-lsp.cmd b/installer/install-omnisharp-lsp.cmd index 828a3b0..dd4efac 100644 --- a/installer/install-omnisharp-lsp.cmd +++ b/installer/install-omnisharp-lsp.cmd @@ -1,22 +1,17 @@ @echo off -where unzip1 2>NUL -if %ERRORLEVEL% neq 0 ( - echo unzip command required - exit /b 1 -) - setlocal cd /d %~dp0 +set installer_dir=%cd% 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 +call %installer_dir%\run_unzip omnisharp-win-x64.zip del omnisharp-win-x64.zip echo @echo off ^ -- cgit v1.2.3-54-g00ecf