21 lines
665 B
Batchfile
21 lines
665 B
Batchfile
@echo off
|
|
rem build.bat - builds dist\gitdesk.exe. Double-click it, or run it from a terminal.
|
|
rem In PowerShell type .\build.bat (PowerShell won't run it without the .\ in front).
|
|
rem Needs Python 3.9+. The real work is done by build.py; everything is logged to build.log.
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
set "PY="
|
|
where py >nul 2>&1 && set "PY=py -3"
|
|
if not defined PY where python >nul 2>&1 && set "PY=python"
|
|
if not defined PY (
|
|
echo Python 3 was not found. Install it from https://www.python.org/downloads/
|
|
echo and tick "Add python.exe to PATH" during setup.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
%PY% "%~dp0build.py" %*
|
|
set "RC=%errorlevel%"
|
|
echo.
|
|
pause
|
|
exit /b %RC%
|