Skip to content

Commit e4bc52c

Browse files
author
Lukas Geiger
committed
fix(build): make build_exe.bat host-agnostic
Build root defaults to %LOCALAPPDATA%\CodeBox\build and can be overridden via CODEBOX_BUILD_ROOT instead of a hard-coded C:\_Local_DEV path.
1 parent b4428e7 commit e4bc52c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎build_exe.bat‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ if errorlevel 1 (
77
pause
88
exit /b 1
99
)
10-
set "BUILD_ROOT=C:\_Local_DEV\codex_build\codebox"
10+
if not defined CODEBOX_BUILD_ROOT set "CODEBOX_BUILD_ROOT=%LOCALAPPDATA%\CodeBox\build"
11+
set "BUILD_ROOT=%CODEBOX_BUILD_ROOT%"
1112
set "WORK_DIR=%BUILD_ROOT%\work"
12-
set "DIST_DIR=C:\_Local_DEV\codex_build\codebox\dist"
13+
set "DIST_DIR=%BUILD_ROOT%\dist"
1314
if not exist "%BUILD_ROOT%" mkdir "%BUILD_ROOT%"
1415
echo Baue CodeBox.exe...
1516
python -m PyInstaller --noconfirm --clean --workpath "%WORK_DIR%" --distpath "%DIST_DIR%" CodeBox.spec

0 commit comments

Comments
 (0)