Files
PS_Launcher/build-all.bat
j.foucher c706d09e72 Drop legacy PSLauncher.exe backward compat (not in prod yet)
Simplifies the rename done in ce3979d : PS_Launcher.exe is the only
name. Removes the dual-path lookup in LauncherSelfUpdater, the
duplicated taskkill blocks in the .bat scripts, the legacy patterns
in .gitignore, and the explanatory comments about the migration.

Cleaner code, single source of truth for the binary name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:08:23 +02:00

37 lines
1.0 KiB
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 ==^> Termine les eventuelles instances qui verrouilleraient les .exe
taskkill /F /IM PS_Launcher.exe /T >nul 2>&1
taskkill /F /IM PS_Launcher.Updater.exe /T >nul 2>&1
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%PS_Launcher.exe
echo %REPO%PS_Launcher.Updater.exe
echo.
pause
endlocal & exit /b 0
:fail
echo.
echo [ECHEC] Build echoue avec le code %ERRORLEVEL%.
echo.
pause
endlocal & exit /b %ERRORLEVEL%