38 lines
854 B
Batchfile
38 lines
854 B
Batchfile
@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 [*] Compilation en cours...
|
|
echo.
|
|
|
|
pyinstaller --onefile --console --name "GitUpdateChecker" --icon=NONE git_updater.py
|
|
|
|
echo.
|
|
if exist "dist\GitUpdateChecker.exe" (
|
|
echo [OK] Executable cree : dist\GitUpdateChecker.exe
|
|
echo.
|
|
echo N'oublie pas de copier config.ini a cote de l'exe !
|
|
) else (
|
|
echo [ERREUR] La compilation a echoue.
|
|
)
|
|
|
|
echo.
|
|
pause
|