mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
81a7d5a365
Winhhtpjs triggered some antivirus software Use powershell for downloads
25 lines
688 B
Batchfile
25 lines
688 B
Batchfile
:: Initialize environment
|
|
call "%~dp0..\env.bat"
|
|
if errorlevel 1 goto error_env
|
|
|
|
set EnvRootPath=%RootPath%\%SourceName%-msys2
|
|
set EnvToolsPath=%EnvRootPath%\tools
|
|
set EnvTempPath=%EnvRootPath%\tmp
|
|
set EnvDownloadPath=%EnvRootPath%\download
|
|
|
|
set EnvSevenZipExe=%EnvToolsPath%\7z.exe
|
|
set EnvCEchoExe=%EnvToolsPath%\cecho.exe
|
|
set cecho=call "%ToolsPath%\cecho.bat"
|
|
|
|
:: Create folders
|
|
if not exist "%EnvRootPath%" mkdir "%EnvRootPath%"
|
|
if not exist "%EnvToolsPath%" mkdir "%EnvToolsPath%"
|
|
if not exist "%EnvDownloadPath%" mkdir "%EnvDownloadPath%"
|
|
|
|
call "%~dp0tools\prepare-tools.bat"
|
|
exit /B %ERRORLEVEL%
|
|
|
|
:error_env
|
|
echo Failed to initialize environment.
|
|
exit /B 1
|