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>
29 lines
904 B
Batchfile
29 lines
904 B
Batchfile
@echo off
|
|
REM Build de l'updater (PS_Launcher.Updater.exe).
|
|
REM Sortie : C:\ASTERION\GIT\PS_Launcher\PS_Launcher.Updater.exe (~34 Mo single-file)
|
|
REM L'updater accompagne PS_Launcher.exe — il doit etre dans le meme dossier.
|
|
|
|
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.Updater (Release single-file)
|
|
echo.
|
|
|
|
dotnet publish "%REPO%src\PSLauncher.Updater\PSLauncher.Updater.csproj" -c Release --nologo
|
|
set "EXITCODE=%ERRORLEVEL%"
|
|
|
|
echo.
|
|
if %EXITCODE% NEQ 0 (
|
|
echo [ECHEC] Build de l'updater echoue avec le code %EXITCODE%.
|
|
) else (
|
|
echo [OK] PS_Launcher.Updater.exe disponible a la racine du repo :
|
|
echo %REPO%PS_Launcher.Updater.exe
|
|
)
|
|
echo.
|
|
pause
|
|
endlocal ^& exit /b %EXITCODE%
|