2015-02-20 13:15:27 +00:00
|
|
|
@echo off
|
2019-01-01 11:40:38 +00:00
|
|
|
setlocal
|
2022-08-12 00:54:12 +00:00
|
|
|
echo QB64-PE Setup
|
2015-02-20 13:15:27 +00:00
|
|
|
echo.
|
|
|
|
|
2022-04-26 04:34:41 +00:00
|
|
|
mkdir internal\c\c_compiler
|
|
|
|
|
2019-01-01 11:40:38 +00:00
|
|
|
if exist internal\c\c_compiler\bin\c++.exe goto skipccompsetup
|
2022-04-26 02:41:19 +00:00
|
|
|
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set MINGW=mingw32.exe || set MINGW=mingw64.exe
|
2022-04-26 22:11:10 +00:00
|
|
|
|
|
|
|
set url="https://www.qb64phoenix.com/qb64_files/%MINGW%"
|
|
|
|
|
|
|
|
echo Downloading %url%...
|
|
|
|
curl %url% -o %MINGW%
|
|
|
|
|
2022-04-26 02:41:19 +00:00
|
|
|
echo Extracting %MINGW% as C++ Compiler
|
|
|
|
@echo off
|
2022-04-26 22:11:10 +00:00
|
|
|
%MINGW% -y -o"./internal/c/c_compiler/"
|
2022-05-19 12:19:32 +00:00
|
|
|
del %MINGW%
|
2022-04-26 02:41:19 +00:00
|
|
|
|
2019-01-01 11:40:38 +00:00
|
|
|
:skipccompsetup
|
2015-02-20 13:15:27 +00:00
|
|
|
|
2022-05-16 04:16:02 +00:00
|
|
|
echo Cleaning...
|
2022-05-16 05:58:22 +00:00
|
|
|
internal\c\c_compiler\bin\mingw32-make.exe OS=win clean >NUL 2>NUL
|
2022-05-15 21:47:58 +00:00
|
|
|
|
2022-08-12 00:54:12 +00:00
|
|
|
echo Building QB64-PE...
|
2022-05-15 20:56:37 +00:00
|
|
|
internal\c\c_compiler\bin\mingw32-make.exe OS=win BUILD_QB64=y || goto report_error
|
2015-02-20 13:15:27 +00:00
|
|
|
|
|
|
|
echo.
|
2022-08-12 00:54:12 +00:00
|
|
|
echo Launching 'QB64-PE'
|
|
|
|
qb64pe
|
2015-02-20 13:15:27 +00:00
|
|
|
|
|
|
|
echo.
|
|
|
|
pause
|
2022-05-15 20:56:37 +00:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
report_error:
|
2022-08-12 00:54:12 +00:00
|
|
|
echo "Error compiling QB64-PE."
|
2022-05-15 20:56:37 +00:00
|
|
|
echo "Please review above steps and report to https://github.com/QB64-Phoenix-Edition/QB64pe/issues if you can't get it to work"
|
|
|
|
exit 1
|