From 4a108c1fdab92d1b4be2483325861286dec7b4ff Mon Sep 17 00:00:00 2001 From: cyber-mawonaj Date: Sat, 1 Aug 2026 09:45:40 -0400 Subject: [PATCH] =?UTF-8?q?docs=20:=20package=20YNH=20d=C3=A9plac=C3=A9=20?= =?UTF-8?q?vers=20le=20d=C3=A9p=C3=B4t=20d=C3=A9di=C3=A9=20veille-ia-gen?= =?UTF-8?q?=5Fynh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3fde6ab..64c7970 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ Observatoire personnel de veille sur les modèles IA génératifs (sorties, lice | Chemin | Contenu | |---|---| | `app/` | Application SvelteKit (Svelte 5 runes, TypeScript strict, adapter-node) | -| `veille-ia_ynh/` | Package YunoHost (packaging v2, helpers 2.1) | | `nodered-flows/` | Flows Node-RED exportés (phase 2 — à venir) | +Le package YunoHost vit dans son dépôt dédié : [`cyber-mawonaj/veille-ia-gen_ynh`](https://labola.o-k-i.net/cyber-mawonaj/veille-ia-gen_ynh) (clone local : `../veille-ia-gen_ynh`). + ## Développement local (hors YunoHost) Prérequis : Node 24 LTS, npm. @@ -46,7 +47,7 @@ npm run test # vitest npm run build # build adapter-node ``` -## Packaging YunoHost (`veille-ia_ynh/`) +## Packaging YunoHost (dépôt `veille-ia-gen_ynh`) Packaging v2 vérifié contre la documentation officielle (août 2026) et le schéma `manifest.v2.schema.json`. Helpers 2.1 (`ynh_config_add_nginx`, `ynh_config_add_systemd`…). @@ -61,16 +62,14 @@ Le package consomme une **archive de tag** publiée sur la forge : 1. Pousser le dépôt sur `https://labola.o-k-i.net/cyber-mawonaj/veille-ia-gen` (procédure : `doc2sveltekit-transition/GITEA.md` — dépôt créé **sans** initialisation). 2. Taguer : `git tag v0.1.0 && git push gitea v0.1.0`. 3. Télécharger `https://labola.o-k-i.net/cyber-mawonaj/veille-ia-gen/archive/v0.1.0.tar.gz` et calculer son sha256. -4. Mettre à jour `veille-ia_ynh/manifest.toml` : `version = "0.1.0~ynh1"`, `resources.sources.main.url` et `sha256` (le placeholder `TODO_…` actuel bloque volontairement toute installation). +4. Mettre à jour `manifest.toml` **dans le dépôt `veille-ia-gen_ynh`** : `version = "0.1.0~ynh1"`, `resources.sources.main.url` et `sha256` (le placeholder `TODO_…` actuel bloque volontairement toute installation), commit + push. 5. Vérifier avec `package_check` (sur une machine YunoHost de test) : viser niveau ≥ 7. ### Installation (sur le serveur) ```bash -git clone https://labola.o-k-i.net/cyber-mawonaj/veille-ia-gen.git -yunohost app install ./veille-ia-gen/veille-ia_ynh -# (le package vit dans le sous-dossier veille-ia_ynh/ du dépôt ; `yunohost app install ` -# exigerait un dépôt dédié contenant le package à sa racine) +yunohost app install https://labola.o-k-i.net/cyber-mawonaj/veille-ia-gen_ynh +# ou depuis un clone local : yunohost app install /chemin/vers/veille-ia-gen_ynh ``` L'install : déploie l'archive, `npm ci` + build (avec `BASE_PATH` = chemin d'install), génère `ALERTS_TOKEN`, écrit `/var/www/veille-ia/app/.env` (chmod 400), configure nginx + systemd (logs journald).