@echo off echo ======================================== echo Build Git Update Checker (.exe) echo ======================================== echo. :: Vérifier que Python est installé python --version >nul 2>&1 if errorlevel 1 ( echo [ERREUR] Python n'est pas installe ou pas dans le PATH. pause exit /b 1 ) :: Installer PyInstaller si nécessaire pip show pyinstaller >nul 2>&1 if errorlevel 1 ( echo [*] Installation de PyInstaller... pip install pyinstaller ) echo [*] Conversion icon.png -> icon.ico... python -c "from PIL import Image; img = Image.open('icon.png'); img.save('icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(32,32),(16,16)])" echo [*] Compilation en cours... echo. pyinstaller --onefile --noconsole --runtime-tmpdir . --name "GitUpdateChecker" --icon=icon.ico git_updater.py echo. if exist "dist\GitUpdateChecker.exe" ( echo [*] Copie de GitUpdateChecker.exe a la racine... copy /Y "dist\GitUpdateChecker.exe" "GitUpdateChecker.exe" >nul echo [OK] Deploiement pret. Committer GitUpdateChecker.exe ) else ( echo [ERREUR] La compilation a echoue. ) echo. pause