diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 61ba69f..63d61e7 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -5,7 +5,8 @@ "Bash(pip show:*)", "Bash(pip install:*)", "Bash(pyinstaller --onefile --windowed --name \"GitUpdateChecker\" git_updater.py)", - "Bash(pyinstaller --onefile --console --name \"GitUpdateChecker\" --icon=NONE git_updater.py)" + "Bash(pyinstaller --onefile --console --name \"GitUpdateChecker\" --icon=NONE git_updater.py)", + "Bash(python -m PyInstaller --onefile --console --name \"GitUpdateChecker\" --icon=NONE git_updater.py)" ] } } diff --git a/CLAUDE.md b/CLAUDE.md index 48094d5..ee2cce3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,6 +31,13 @@ Lanceur-geco/ - Format : **semver simplifié** `MAJEUR.MINEUR.PATCH` (ex: `0.5.1`) - **Les deux doivent toujours être synchronisés** : quand on change la version, mettre à jour `VERSION` dans `git_updater.py` ET `version.txt` +### Mise à jour de la version + +A chaque changement de version, il faut mettre à jour **3 éléments** : +1. `VERSION` dans `git_updater.py` (constante en haut du fichier) +2. `version.txt` à la racine du projet +3. **Recompiler l'exe** via `build.bat` et copier `dist/GitUpdateChecker.exe` à la racine du projet + ### Mécanisme de comparaison - La fonction `_version_tuple(v)` convertit la chaîne version en tuple d'entiers (ex: `"0.5.1"` -> `(0, 5, 1)`) pour permettre la comparaison numérique diff --git a/GitUpdateChecker.exe b/GitUpdateChecker.exe index 80629e2..4619ede 100644 Binary files a/GitUpdateChecker.exe and b/GitUpdateChecker.exe differ diff --git a/git_updater.py b/git_updater.py index a559e20..9a8a383 100644 --- a/git_updater.py +++ b/git_updater.py @@ -5,7 +5,7 @@ Accès lecture seule uniquement (fetch/pull/checkout, jamais de push). Tous les chemins sont relatifs à l'emplacement de l'exécutable. """ -VERSION = "0.5.1" +VERSION = "0.5.2" import subprocess import sys