NuHash/etc/build/mingw/mk-gcc.cmd

28 lines
610 B
Batchfile
Raw Permalink Normal View History

2023-05-10 23:08:24 +02:00
@echo off
cd /d "%~dp0"
if "%MSYS2_DIR%"=="" (
set "MSYS2_DIR=C:\msys64"
)
if not exist "%MSYS2_DIR%\msys2_shell.cmd" (
echo MSYS2 shell not found. Please check MSYS2_DIR and try again!
pause
goto:eof
)
if exist "%~dp0..\..\..\out" (
rmdir /S /Q "%~dp0..\..\..\out"
)
for %%m in (32,64) do (
echo ========================================================================
echo MinGW%%m
echo ========================================================================
echo.
call "%MSYS2_DIR%\msys2_shell.cmd" -mingw%%m -no-start -defterm -where "%~dp0" -c "./mk-release.sh --no-remove"
echo.
)
pause