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>
24 lines
612 B
Batchfile
24 lines
612 B
Batchfile
@echo off
|
|
REM Build du launcher principal (PSLauncher.exe).
|
|
REM Sortie : C:\ASTERION\GIT\PS_Launcher\PSLauncher.exe (~78 Mo single-file self-contained)
|
|
|
|
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
|
|
set "EXITCODE=%ERRORLEVEL%"
|
|
|
|
echo.
|
|
if %EXITCODE% NEQ 0 (
|
|
echo [ECHEC] Build du launcher echoue avec le code %EXITCODE%.
|
|
) else (
|
|
echo [OK] PSLauncher.exe disponible a la racine du repo :
|
|
echo %REPO%PSLauncher.exe
|
|
)
|
|
echo.
|
|
pause
|
|
endlocal & exit /b %EXITCODE%
|