@echo off echo ======================================== echo Build Git Update Checker (.exe) - Go echo ======================================== echo. where go >nul 2>&1 if errorlevel 1 ( echo [ERREUR] Go n'est pas installe ou pas dans le PATH. pause exit /b 1 ) echo [*] Telechargement des dependances... go mod tidy if errorlevel 1 ( echo [ERREUR] go mod tidy a echoue. pause exit /b 1 ) echo [*] Generation du manifeste Windows (rsrc.syso)... where rsrc >nul 2>&1 if errorlevel 1 ( echo [*] Installation de rsrc... go install github.com/akavel/rsrc@latest ) rsrc -manifest app.manifest -ico icon.ico -o rsrc.syso echo [*] Compilation en cours... go build -ldflags "-H windowsgui -s -w" -o GitUpdateChecker.exe . echo. if exist "GitUpdateChecker.exe" ( echo [OK] GitUpdateChecker.exe cree - exe unique, aucune dependance. ) else ( echo [ERREUR] La compilation a echoue. ) echo. pause