39 lines
1.2 KiB
Batchfile
39 lines
1.2 KiB
Batchfile
@echo off
|
|
set ROOT=%~dp0%
|
|
set PATH=%ROOT%bin;%PATH%
|
|
pushd "%ROOT%"
|
|
|
|
if NOT EXIST "3rd_party\dokany-1.0.2" (
|
|
del /q v1.0.2.zip > NUL
|
|
wget --no-check-certificate "https://github.com/dokan-dev/dokany/archive/v1.0.2.zip" || goto :ERROR
|
|
unzip -o -q -d 3rd_party v1.0.2.zip || goto :ERROR
|
|
del /q v1.0.2.zip > NUL
|
|
del /q dokan.zip > NUL
|
|
wget --no-check-certificate "https://github.com/dokan-dev/dokany/releases/download/v1.0.2/dokan.zip" || goto :ERROR
|
|
unzip -o -q -d 3rd_party\dokany-1.0.2 dokan.zip || goto :ERROR
|
|
del /q dokan.zip > NUL
|
|
)
|
|
|
|
if NOT EXIST ".\bin\cmake-3.7.2-win64-x64\bin\cmake.exe" (
|
|
del /q cmake-3.7.2-win64-x64.zip > NUL
|
|
wget --no-check-certificate https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip || goto :ERROR
|
|
unzip -o -q -d bin\ cmake-3.7.2-win64-x64.zip || goto :ERROR
|
|
del /q cmake-3.7.2-win64-x64.zip > NUL
|
|
)
|
|
|
|
if NOT EXIST "bin\nsis-3.01\NSIS.exe" (
|
|
del /q nsis-3.01.zip > NUL
|
|
wget --no-check-certificate "https://sourceforge.net/projects/nsis/files/NSIS 3/3.01/nsis-3.01.zip/download" || goto :ERROR
|
|
unzip -o -q -d bin\ nsis-3.01.zip || goto :ERROR
|
|
del /q nsis-3.01.zip > NUL
|
|
)
|
|
|
|
goto :END
|
|
|
|
:ERROR
|
|
pause
|
|
popd
|
|
exit 1
|
|
|
|
:END
|
|
popd |