diff options
author | RJ Ryan <rryan@mixxx.org> | 2017-01-23 11:36:35 -0800 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2017-01-23 11:40:16 -0800 |
commit | f1d5a11a458efd599afe8f89c0201b3e41e4ce9f (patch) | |
tree | a1475d652b72532a56f050892dcf2ee907b9d613 /build/windows | |
parent | 9c640dbcbfb2525a200ec4015ba95700274c954b (diff) |
Update AppVeyor build to "2.1-j00018-%platform%-%configuration%-fastbuild-static-7510b10-minimal".
Also move install_buildenv.bat to build/windows and make it usable by Jenkins.
Diffstat (limited to 'build/windows')
-rw-r--r-- | build/windows/install_buildenv.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build/windows/install_buildenv.bat b/build/windows/install_buildenv.bat new file mode 100644 index 0000000000..4e0e6f0f5b --- /dev/null +++ b/build/windows/install_buildenv.bat @@ -0,0 +1,30 @@ +@ECHO OFF +SETLOCAL + +REM Base URL to download winlibs from. +SET BASEURL=%1 + +REM The winlib name to install. +SET WINLIB_NAME=%2 + +REM The local directory to cache build environments in. +SET WINLIBS_PATH=%3 + +REM Install build env base dir +IF NOT EXIST "%WINLIBS_PATH%" MKDIR "%WINLIBS_PATH%" + +IF NOT EXIST "%WINLIBS_PATH%\%WINLIB_NAME%" ( + echo Installing winlib %WINLIB_NAME%. + CD "%WINLIBS_PATH%" + echo ..Downloading %WINLIB_NAME%.zip + curl -fsS -L -o %WINLIB_NAME%.zip %BASEURL%/%WINLIB_NAME%.zip + REM TODO(XXX) check fingerprint on zip file. + echo ..unzipping %WINLIB_NAME%.zip + 7z x %WINLIB_NAME%.zip + DEL %WINLIB_NAME%.zip +) else ( + echo %WINLIB_NAME% already exists at %WINLIBS_PATH% + REM TODO(XXX) check fingerprint on build environment? +) + +ENDLOCAL |