build-launcher.bat: publishes PSLauncher.App only (Release single-file). build-updater.bat: publishes PSLauncher.Updater only. build-all.bat: both, sequentially, fast-fail on the first error. All three pause at the end so a double-click from Explorer shows the result before the window closes. The existing build-installer.bat (launcher + updater + Inno Setup .exe) stays as the full release pipeline. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
845 B
Batchfile
33 lines
845 B
Batchfile
@echo off
|
|
REM Build complet : launcher + updater (sans creer l'installeur).
|
|
REM Pour l'installeur Inno Setup, utiliser build-installer.bat.
|
|
|
|
setlocal
|
|
set "REPO=%~dp0"
|
|
echo.
|
|
echo ==^> dotnet publish PSLauncher.App (Release single-file)
|
|
echo.
|
|
dotnet publish "%REPO%src\PSLauncher.App\PSLauncher.App.csproj" -c Release --nologo
|
|
if %ERRORLEVEL% NEQ 0 goto :fail
|
|
|
|
echo.
|
|
echo ==^> dotnet publish PSLauncher.Updater (Release single-file)
|
|
echo.
|
|
dotnet publish "%REPO%src\PSLauncher.Updater\PSLauncher.Updater.csproj" -c Release --nologo
|
|
if %ERRORLEVEL% NEQ 0 goto :fail
|
|
|
|
echo.
|
|
echo [OK] Les deux exes sont disponibles a la racine du repo :
|
|
echo %REPO%PSLauncher.exe
|
|
echo %REPO%PSLauncher.Updater.exe
|
|
echo.
|
|
pause
|
|
endlocal & exit /b 0
|
|
|
|
:fail
|
|
echo.
|
|
echo [ECHEC] Build echoue avec le code %ERRORLEVEL%.
|
|
echo.
|
|
pause
|
|
endlocal & exit /b %ERRORLEVEL%
|