feature/go-rewrite : base Go avec walk GUI

- Rewrite complet en Go : exe unique sans _internal/, sans extraction temp
- GUI Windows-native via github.com/lxn/walk (TableView, TextEdit, PushButton)
- Meme fonctionnalites : check repos, pull, checkout, auto-update, logs
- build.bat : go build -ldflags "-H windowsgui -s -w" -> 9.6 Mo, zero dependance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 07:33:26 +01:00
parent 959298fc2d
commit 50c8ad9823
964 changed files with 991 additions and 116191 deletions

View File

@@ -1,44 +1,30 @@
@echo off
echo ========================================
echo Build Git Update Checker (.exe)
echo Build Git Update Checker (.exe) - Go
echo ========================================
echo.
:: Vérifier que Python est installé
python --version >nul 2>&1
where go >nul 2>&1
if errorlevel 1 (
echo [ERREUR] Python n'est pas installe ou pas dans le PATH.
echo [ERREUR] Go n'est pas installe ou pas dans le PATH.
pause
exit /b 1
)
:: Installer PyInstaller si nécessaire
pip show pyinstaller >nul 2>&1
echo [*] Telechargement des dependances...
go mod tidy
if errorlevel 1 (
echo [*] Installation de PyInstaller...
pip install pyinstaller
echo [ERREUR] go mod tidy a echoue.
pause
exit /b 1
)
echo [*] Conversion icon.png -> icon.ico + icon_small.png (32x32)...
python -c "from PIL import Image; img = Image.open('icon.png').convert('RGBA'); img.save('icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(32,32),(16,16)]); thumb = img.copy(); thumb.thumbnail((32,32), Image.LANCZOS); thumb.save('icon_small.png')"
echo [*] Compilation en cours...
echo.
pyinstaller --onedir --noconsole --name "GitUpdateChecker" --icon=icon.ico --add-data "icon.png:." --add-data "icon_small.png:." -y git_updater.py
go build -ldflags "-H windowsgui -s -w" -o GitUpdateChecker.exe .
echo.
if exist "dist\GitUpdateChecker\GitUpdateChecker.exe" (
echo [*] Copie de GitUpdateChecker.exe a la racine...
copy /Y "dist\GitUpdateChecker\GitUpdateChecker.exe" "GitUpdateChecker.exe" >nul
echo [*] Copie de _internal\ a la racine...
if exist "_internal" rmdir /s /q "_internal"
xcopy /E /I /Q "dist\GitUpdateChecker\_internal" "_internal"
echo.
echo [OK] Deploiement pret. Committer GitUpdateChecker.exe + _internal\
echo _internal\ ne change que si la version de Python change.
if exist "GitUpdateChecker.exe" (
echo [OK] GitUpdateChecker.exe cree - exe unique, aucune dependance.
) else (
echo [ERREUR] La compilation a echoue.
)