1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 12:40:36 +00:00
QB64-PE/setup_win.bat
2022-05-12 00:21:02 -04:00

37 lines
896 B
Batchfile

@echo off
setlocal
echo QB64 Setup
echo.
del /q /s internal\c\libqb\*.o >nul 2>nul
del /q /s internal\c\libqb\*.a >nul 2>nul
del /q /s internal\c\parts\*.o >nul 2>nul
del /q /s internal\c\parts\*.a >nul 2>nul
del /q /s internal\temp\*.* >nul 2>nul
mkdir internal\c\c_compiler
if exist internal\c\c_compiler\bin\c++.exe goto skipccompsetup
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set MINGW=mingw32.exe || set MINGW=mingw64.exe
set url="https://www.qb64phoenix.com/qb64_files/%MINGW%"
echo Downloading %url%...
curl %url% -o %MINGW%
echo Extracting %MINGW% as C++ Compiler
@echo off
%MINGW% -y -o"./internal/c/c_compiler/"
:skipccompsetup
internal\c\c_compiler\bin\mingw32-make.exe OS=win clean
internal\c\c_compiler\bin\mingw32-make.exe OS=win BUILD_QB64=y
echo.
echo Launching 'QB64'
qb64
echo.
pause