mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Windows build environment:
- Renamed folder build_libs to build-libs - Removed old file stripSVN.sh - Fixed some batch files - Switch from curl to wget - Added Qt environment - Added build.bat to build everything
This commit is contained in:
parent
00085728ae
commit
eb95c6895a
19 changed files with 430 additions and 67 deletions
6
build_scripts/Windows/tools/cecho.bat
Normal file
6
build_scripts/Windows/tools/cecho.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
:: Usage:
|
||||
:: call cecho.bat [info|error|std] "text"
|
||||
|
||||
if "%~1"=="std" echo %~2
|
||||
if "%~1"=="info" "%EnvCEchoExe%" green "%~2"
|
||||
if "%~1"=="error" "%EnvCEchoExe%" red "%~2"
|
46
build_scripts/Windows/tools/download-file-wildcard.bat.bat
Normal file
46
build_scripts/Windows/tools/download-file-wildcard.bat.bat
Normal file
|
@ -0,0 +1,46 @@
|
|||
:: Usage:
|
||||
:: call download-file-wildcard.bat url file-wildcard download-path variable
|
||||
|
||||
if "%~4"=="" (
|
||||
echo.
|
||||
echo Parameter error.
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
if "%EnvTempPath%"=="" (
|
||||
echo.
|
||||
echo Environment error.
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
setlocal
|
||||
|
||||
set Url=%~1
|
||||
set FileWildcard=%~2
|
||||
set DownloadPath=%~3
|
||||
set Var=%~4
|
||||
set File=
|
||||
|
||||
call "%~dp0remove-dir.bat" "%EnvTempPath%"
|
||||
mkdir "%EnvTempPath%"
|
||||
|
||||
"%EnvWgetExe%" --recursive --continue --no-directories --no-parent -A "%FileWildcard%" --directory-prefix="%EnvTempPath%" "%Url%"
|
||||
|
||||
if errorlevel 1 (
|
||||
call "%~dp0remove-dir.bat" "%EnvTempPath%"
|
||||
endlocal & set %Var%=
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
for %%A in (%EnvTempPath%\%FileWildcard%) do set File=%%~nxA
|
||||
if "%File%"=="" (
|
||||
call "%~dp0remove-dir.bat" "%EnvTempPath%"
|
||||
endlocal & set %Var%=
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
|
||||
move "%EnvTempPath%\%File%" "%DownloadPath%"
|
||||
call "%~dp0remove-dir.bat" "%EnvTempPath%"
|
||||
|
||||
endlocal & set %Var%=%File%
|
||||
exit /B 0
|
13
build_scripts/Windows/tools/download-file.bat
Normal file
13
build_scripts/Windows/tools/download-file.bat
Normal file
|
@ -0,0 +1,13 @@
|
|||
:: Usage:
|
||||
:: call download-file.bat url file
|
||||
|
||||
if "%~2"=="" (
|
||||
echo.
|
||||
echo Parameter error.
|
||||
exit /B 1
|
||||
)
|
||||
|
||||
::"%EnvCurlExe%" -L -k "%~1" -o "%~2"
|
||||
"%EnvWgetExe%" --continue "%~1" --output-document="%~2"
|
||||
|
||||
exit /B %ERRORLEVEL%
|
Loading…
Add table
Add a link
Reference in a new issue