Add interactive package batch script

This commit is contained in:
Kroonk
2026-05-23 10:41:34 +02:00
parent a5b7165bf7
commit 88124ce71b
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
@echo off
setlocal
set "SCRIPT_DIR=%~dp0"
set "PROJECT_ROOT=%SCRIPT_DIR%.."
echo.
echo Brogether package builder
echo -------------------------
echo Example versions: 0.1.1, v0.1.1, workshop-update-1
echo.
set "VERSION="
set /p VERSION=Enter version name for this build:
if "%VERSION%"=="" (
echo.
echo No version entered. Aborting.
pause
exit /b 1
)
echo.
echo Building Brogether-Brogether-%VERSION%.zip ...
echo.
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%package.ps1" -Version "%VERSION%"
if errorlevel 1 (
echo.
echo Build failed.
pause
exit /b 1
)
echo.
echo Build finished.
echo Local ZIP:
echo %PROJECT_ROOT%\dist\Brogether-Brogether-%VERSION%.zip
echo.
echo Git release ZIP:
echo %PROJECT_ROOT%\releases\Brogether-Brogether-%VERSION%.zip
echo.
pause