-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsetup_inform_win.cmd
More file actions
42 lines (32 loc) · 1.51 KB
/
setup_inform_win.cmd
File metadata and controls
42 lines (32 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@rem InForm for QB64-PE Setup script
@echo off
rem Check if QB64-PE directory path is provided as an argument
if "%~1" neq "" (
set "QB64PE_PATH=%~1"
) else (
set "QB64PE_PATH=..\QB64pe"
)
cd /d "%~dp0"
echo Compiling InForm-PE release. Please be patient...
rem Attempt build with QB64-PE path
if exist %QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe (
%QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe -f inform.mk clean OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
%QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe -f inform.mk release OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
) else (
mingw32-make.exe -f inform.mk clean OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
mingw32-make.exe -f inform.mk release OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
)
if not errorlevel 1 exit /b
echo Build failed with QB64-PE path: %QB64PE_PATH%
echo Retrying with alternative QB64-PE directory...
rem Retry build with ..\QB64pe as fallback if it exists
set "QB64PE_PATH=..\QB64pe"
if exist %QB64PE_PATH% (
if exist %QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe (
%QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe -f inform.mk clean OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
%QB64PE_PATH%\internal\c\c_compiler\bin\mingw32-make.exe -f inform.mk release OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
) else (
mingw32-make.exe -f inform.mk clean OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
mingw32-make.exe -f inform.mk release OS=Windows_NT QB64PE_PATH=%QB64PE_PATH%
)
)