aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/release.bat
diff options
context:
space:
mode:
authorGuessWho <wwu@wenbinwu.com>2018-05-03 05:15:03 +0800
committerGuessWho <wwu@wenbinwu.com>2018-05-03 05:15:03 +0800
commit212956fa0556632eccc6113ed61219082dd15510 (patch)
treeaf4454b1c2091d37d2bba0e9456bbf8dd0c9232d /scripts/release.bat
parent5cce2e552baf1f7431c99500da74cb929360c3b8 (diff)
downloaddexon-solidity-212956fa0556632eccc6113ed61219082dd15510.tar.gz
dexon-solidity-212956fa0556632eccc6113ed61219082dd15510.tar.zst
dexon-solidity-212956fa0556632eccc6113ed61219082dd15510.zip
run both vs 2015 and vs 2017 in appveyor
Diffstat (limited to 'scripts/release.bat')
-rw-r--r--scripts/release.bat14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/release.bat b/scripts/release.bat
index 54d85862..be95b35e 100644
--- a/scripts/release.bat
+++ b/scripts/release.bat
@@ -27,7 +27,19 @@ REM Copyright (c) 2016 solidity contributors.
REM ---------------------------------------------------------------------------
set CONFIGURATION=%1
+set VERSION=%2
+
+IF "%VERSION%"=="2015" (
+ set "DLLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT\msvc*.dll"
+) ELSE (
+
+ IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.13.26020\x86\Microsoft.VC141.CRT\" (
+ set "DLLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.13.26020\x86\Microsoft.VC141.CRT\msvc*.dll"
+ ) ELSE (
+ set "DLLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Redist\MSVC\14.13.26020\x86\Microsoft.VC141.CRT\msvc*.dll"
+ )
+)
7z a solidity-windows.zip ^
.\build\solc\%CONFIGURATION%\solc.exe .\build\test\%CONFIGURATION%\soltest.exe ^
- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT\msvc*.dll"
+ "%DLLS%"