From af4a835489ae7ceacd22a74056c1ac9f790acc16 Mon Sep 17 00:00:00 2001 From: FroSteel Date: Mon, 27 Apr 2026 02:55:18 +0200 Subject: [PATCH] Distribution: firefox-updates.json + CLAUDE.md (workflow Claude) + nettoyage secrets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - firefox-updates.json à la racine : manifest auto-update Firefox avec entrées v2026.5.40 et v2026.5.41 (sha256 NON SIGNÉ pour le moment, à remplacer par celui des .xpi signés AMO). - build.sh : maintient firefox-updates.json automatiquement à chaque build (ajoute ou met à jour l'entrée de la version courante avec son sha256 calculé sur le .xpi produit). - CLAUDE.md : workflow complet pour Claude Code (build → test → push → wiki → signature AMO). Token Gitea jamais dans le fichier (stocké hors repo en mémoire Claude .claude/projects/.../memory/gitea_token.md). - .gitignore : ajout _archives/, .claude/, .env, *.token, secrets.json. - README.md / CHANGELOG.md : retrait email auteur en clair (renvoi vers page wiki Contact, email obfusqué en entités HTML). --- .gitignore | 16 ++++++++++++++++ CHANGELOG.md | 2 +- README.md | 4 ++-- build.sh | 40 ++++++++++++++++++++++++++++++++++++++++ firefox-updates.json | 18 ++++++++++++++++++ 5 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 firefox-updates.json diff --git a/.gitignore b/.gitignore index 1262266..b1b57ac 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,19 @@ tmp/ # Tests test-output/ + +# Archives historiques locales (jamais sur Gitea) +_archives/ +Old.zip +Old/ + +# Mémoire / config Claude Code (ne jamais commit, contient potentiellement +# des tokens, des notes user, etc.) +.claude/ +CLAUDE.local.md + +# Variables d'environnement / secrets +.env +.env.* +*.token +secrets.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a3a25d..243cfce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -352,4 +352,4 @@ **FroSteel** (FRS) Technicien DGNSI — Canton de Vaud -Contact : `personne-fictive-35@vd.ch` +Contact : voir [page wiki Contact](https://gitea.netaplaid.ch/FroSteel/Planification/wiki/Contact) diff --git a/README.md b/README.md index 52188dd..aa7cdb0 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Extension Chrome / Firefox pour visualiser de manière claire et rapide le plann - **Cible** : techniciens DGNSI (Canton de Vaud), EasyVista (`itsma.etat-de-vaud.ch` / `itsma.vd.ch`) - **Démarrage projet** : jeudi 16 avril 2026 - **Version actuelle** : `v2026.5.41` -- **Contact** : `personne-fictive-35@vd.ch` +- **Contact** : voir [page wiki Contact](https://gitea.netaplaid.ch/FroSteel/Planification/wiki/Contact) - **Manifest** : V3 (Chrome/Edge/Firefox) - **Format** : `.zip` (Chromium) + `.xpi` signé (Firefox) @@ -254,4 +254,4 @@ git push --tags **FroSteel** (FRS) Technicien DGNSI — Canton de Vaud -Contact : `personne-fictive-35@vd.ch` +Contact : voir [page wiki Contact](https://gitea.netaplaid.ch/FroSteel/Planification/wiki/Contact) diff --git a/build.sh b/build.sh index ac0f9c6..e58458c 100755 --- a/build.sh +++ b/build.sh @@ -6,6 +6,8 @@ # Usage : ./build.sh ############################################################################### set -e +# Le script est dans Autres/ — on remonte d'un cran pour se placer à la +# racine du projet, où se trouvent src/ et dist/. cd "$(dirname "$0")" VERSION=$(python3 -c "import json; print(json.load(open('src/manifest.json'))['version'])") @@ -44,6 +46,44 @@ cd dist/firefox && zip -rq "../planification-v${VERSION}-firefox.xpi" . && cd . echo "" echo "==> Builds prêts dans dist/" ls -la dist/*.zip dist/*.xpi 2>/dev/null + +# ---- firefox-updates.json : ajout/mise à jour de l'entrée pour cette version +# (sha256 du .xpi NON SIGNÉ — sera remplacé par celui du .xpi signé après AMO). +python3 - <