Use VERSION variable

This commit is contained in:
Yasuhiro Matsumoto
2020-06-03 17:50:40 +09:00
parent 939545d547
commit 29d162b506
16 changed files with 51 additions and 32 deletions

View File

@@ -1,16 +1,16 @@
@echo off
setlocal
set VERSION=10.0.0
echo Downloading clang and LLVM...
curl -L -o LLVM-10.0.0-win64.exe "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe"
curl -L -o LLVM-%VERSION%-win64.exe "https://github.com/llvm/llvm-project/releases/download/llvmorg-%VERSION%/LLVM-%VERSION%-win64.exe"
echo Running setup...
REM Run setup as regular user to avoid a UAC popup
set __COMPAT_LAYER=RUNASINVOKER
md tmp
LLVM-10.0.0-win64.exe /S /D=%cd%\tmp
LLVM-%VERSION%-win64.exe /S /D=%cd%\tmp
copy tmp\bin\clangd.exe clangd.exe
del LLVM-10.0.0-win64.exe
del LLVM-%VERSION%-win64.exe
rd /Q /S %cd%\tmp
.\clangd.exe --version

View File

@@ -1,3 +1,5 @@
@echo off
curl -L -o clojure-lsp.cmd https://github.com/snoe/clojure-lsp/releases/download/release-20191202T142318/clojure-lsp
setlocal
set VERSION=20191202T142318
curl -L -o clojure-lsp.cmd https://github.com/snoe/clojure-lsp/releases/download/release-%VERSION%/clojure-lsp

View File

@@ -1,7 +1,6 @@
@echo off
setlocal
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%"

View File

@@ -1,5 +1,7 @@
@echo off
curl -L -o dls-v0.26.0.windows.x86_64.zip https://github.com/d-language-server/dls/releases/download/v0.26.0/dls-v0.26.0.windows.x86_64.zip"
call "%~dp0\run_unzip.cmd" dls-v0.26.0.windows.x86_64.zip
del dls-v0.26.0.windows.x86_64.zip
setlocal
set VERSION=0.26.0
curl -L -o dls-v%VERSION%.windows.x86_64.zip https://github.com/d-language-server/dls/releases/download/v%VERSION%/dls-v%VERSION%.windows.x86_64.zip"
call "%~dp0\run_unzip.cmd" dls-v%VERSION%.windows.x86_64.zip
del dls-v%VERSION%.windows.x86_64.zip

View File

@@ -1,6 +1,8 @@
@echo off
curl -L -o elixir-ls.zip "https://github.com/elixir-lsp/elixir-ls/releases/download/v0.4.0/elixir-ls.zip"
setlocal
set VERSION=0.4.0
curl -L -o elixir-ls.zip "https://github.com/elixir-lsp/elixir-ls/releases/download/v%VERSION%/elixir-ls.zip"
call "%~dp0\run_unzip.cmd" elixir-ls.zip
del elixir-ls.zip

View File

@@ -1,6 +1,8 @@
@echo off
curl -L -o "vscode-eslint.vsix" "https://github.com/microsoft/vscode-eslint/releases/download/release%%2F2.1.0-next.1/vscode-eslint-2.1.0.vsix"
setlocal
set VERSION=2.1.0
curl -L -o "vscode-eslint.vsix" "https://github.com/microsoft/vscode-eslint/releases/download/release%%2F%VERSION%-next.1/vscode-eslint-%VERSION%.vsix"
call "%~dp0\run_unzip.cmd" vscode-eslint.vsix
del vscode-eslint.vsix

View File

@@ -1,9 +1,10 @@
@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=3.1.1
set HASH=d9768135-4646-4839-9eea-b404bb940452/8275e4320514bab636b1627c62906ef9
curl -L -o dotnet-runtime-%VERSION%-win-x64.zip "https://download.visualstudio.microsoft.com/download/pr/%HASH%/dotnet-runtime-%VERSION%-win-x64.zip"
call "%~dp0\run_unzip.cmd" dotnet-runtime-%VERSION%-win-x64.zip
set url=https://ci.appveyor.com/api/projects/fsautocomplete/fsautocomplete/artifacts/bin/pkgs/fsautocomplete.netcore.zip?branch=master

View File

@@ -1,6 +1,8 @@
@echo off
curl -L -o server.zip "https://github.com/fwcd/kotlin-language-server/releases/download/0.5.2/server.zip"
setlocal
set VERSION=0.5.2
curl -L -o server.zip "https://github.com/fwcd/kotlin-language-server/releases/download/%VERSION%/server.zip"
call "%~dp0\run_unzip.cmd" server.zip
del server.zip

View File

@@ -5,5 +5,5 @@ setlocal
curl -Lo coursier https://git.io/coursier-cli
curl -Lo coursier.bat https://git.io/coursier-bat
set version="0.8.4"
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
set VERSION=0.8.4
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

View File

@@ -1,6 +1,8 @@
@echo off
curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v1.35.2/omnisharp-win-x64.zip"
setlocal
set VERSION=1.35.2
curl -L -o omnisharp-win-x64.zip "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v%VERSION%/omnisharp-win-x64.zip"
call "%~dp0\run_unzip.cmd" omnisharp-win-x64.zip
del omnisharp-win-x64.zip

View File

@@ -1,6 +1,8 @@
@echo off
curl -L -o PowerShellEditorServices.zip "https://github.com/PowerShell/PowerShellEditorServices/releases/download/v2.1.0/PowerShellEditorServices.zip"
setlocal
set VERSION=2.1.0
curl -L -o PowerShellEditorServices.zip "https://github.com/PowerShell/PowerShellEditorServices/releases/download/v%VERSION%/PowerShellEditorServices.zip"
call "%~dp0\run_unzip.cmd" PowerShellEditorServices.zip
del PowerShellEditorServices.zip
mkdir %~dp0session

View File

@@ -1,12 +1,12 @@
@echo off
setlocal
set VERSION=3.1.1
curl -L -o dotnet-runtime-%VERSION%-win-x64.zip "https://download.visualstudio.microsoft.com/download/pr/d9768135-4646-4839-9eea-b404bb940452/8275e4320514bab636b1627c62906ef9/dotnet-runtime-%VERSION%-win-x64.zip"
call "%~dp0\run_unzip.cmd" dotnet-runtime-%VERSION%-win-x64.zip
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.45
set url=https://pvsc.blob.core.windows.net/python-language-server-stable/Python-Language-Server-win-x64.%version%.nupkg
set VERSION=0.5.45
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%

View File

@@ -1,5 +1,7 @@
@echo off
curl -L -o rust-analyzer-windows.exe "https://github.com/rust-analyzer/rust-analyzer/releases/download/2020-06-01/rust-analyzer-windows.exe"
setlocal
set VERSION=2020-06-01
curl -L -o rust-analyzer-windows.exe "https://github.com/rust-analyzer/rust-analyzer/releases/download/%VERSION%/rust-analyzer-windows.exe"
move rust-analyzer-windows.exe rust-analyzer.exe

View File

@@ -1,10 +1,9 @@
@echo off
setlocal
set version=v0.1.12
curl -L -o svls-%version%-x86_64-win.zip "https://github.com/dalance/svls/releases/download/v0.1.12/svls-%version%-x86_64-win.zip"
call "%~dp0\run_unzip.cmd" svls-%version%-x86_64-win.zip
set VERSION=v0.1.12
curl -L -o svls-%VERSION%-x86_64-win.zip "https://github.com/dalance/svls/releases/download/v0.1.12/svls-%VERSION%-x86_64-win.zip"
call "%~dp0\run_unzip.cmd" svls-%VERSION%-x86_64-win.zip
move target\x86_64-pc-windows-msvc\release\svls.exe .
rd /Q /S target
del svls-%version%-x86_64-win.zip
del svls-%VERSION%-x86_64-win.zip

View File

@@ -1,3 +1,5 @@
@echo off
curl -L "https://github.com/juliosueiras/terraform-lsp/releases/download/v0.0.10/terraform-lsp_0.0.10_windows_amd64.tar.gz" | tar xz
setlocal
set VERSION=0.0.10
curl -L "https://github.com/juliosueiras/terraform-lsp/releases/download/v%VERSION%/terraform-lsp_%VERSION%_windows_amd64.tar.gz" | tar xz

View File

@@ -1,5 +1,7 @@
@echo off
curl -L -o texlab-x86_64-windows.zip "https://github.com/latex-lsp/texlab/releases/download/v1.8.0/texlab-x86_64-windows.zip"
setlocal
set VERSION=1.8.0
curl -L -o texlab-x86_64-windows.zip "https://github.com/latex-lsp/texlab/releases/download/v%VERSION%/texlab-x86_64-windows.zip"
call "%~dp0\run_unzip.cmd" texlab-x86_64-windows.zip
del texlab-x86_64-windows.zip