- CLI Rust (am) : list/install/uninstall/update/start/stop/restart/run/status/search/info/config/doctor/completion/export/import/self-update + shell interactif (Tab, historique) - 9 methodes d'installation (npm, pip, uv, cargo, go, bun, curl, binary, git) - catalogue de 72 agents, dependances, processus, securite (dry-run, checksums) - sondes de version paralleles + cache (am list ~25 ms a chaud) - installateurs one-liner : install.sh, install.ps1
54 lines
1.8 KiB
Markdown
54 lines
1.8 KiB
Markdown
# Publier une release
|
|
|
|
Les installateurs one-liner (`install.sh` et `install.ps1`) téléchargent
|
|
les binaires attachés à la **dernière release** du dépôt Gitea
|
|
(https://git.dracodev.net/Projets/agent-manager). Sans binaire pour la
|
|
plateforme, ils retombent sur `cargo install --git` (plus lent mais toujours
|
|
fonctionnel).
|
|
|
|
## 1. Bumper la version
|
|
|
|
Dans Cargo.toml (ex. `0.2.0`), puis :
|
|
|
|
cargo build --release # binaire Windows (am.exe) sur Windows
|
|
# sur une machine Linux :
|
|
cargo build --release # binaire Linux (am)
|
|
|
|
## 2. Créer les archives des binaires
|
|
|
|
Windows (PowerShell) :
|
|
|
|
Compress-Archive target\release\am.exe am-windows-x86_64.zip
|
|
|
|
Linux :
|
|
|
|
tar -czf am-linux-x86_64.tar.gz -C target/release am
|
|
|
|
## 3. Créer la release sur Gitea
|
|
|
|
Via l'interface web : Releases > New Release, tag v0.2.0, attacher les
|
|
archives ci-dessus.
|
|
|
|
Ou via l'API (jeton Gitea requis) :
|
|
|
|
curl -X POST -H "Authorization: token <JETON>" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"tag_name":"v0.2.0","name":"v0.2.0","body":"notes de version"}' \
|
|
https://git.dracodev.net/api/v1/repos/Projets/agent-manager/releases
|
|
|
|
curl -X POST -H "Authorization: token <JETON>" \
|
|
-F "attachment=@am-windows-x86_64.zip" \
|
|
https://git.dracodev.net/api/v1/repos/Projets/agent-manager/releases/<id>/assets?name=am-windows-x86_64.zip
|
|
|
|
curl -X POST -H "Authorization: token <JETON>" \
|
|
-F "attachment=@am-linux-x86_64.tar.gz" \
|
|
https://git.dracodev.net/api/v1/repos/Projets/agent-manager/releases/<id>/assets?name=am-linux-x86_64.tar.gz
|
|
|
|
## 4. Tag git
|
|
|
|
git tag v0.2.0 && git push origin v0.2.0
|
|
|
|
Les conventions de nommage attendues par les installateurs :
|
|
- am-windows-x86_64.zip (contient am.exe)
|
|
- am-linux-x86_64.tar.gz (contient am)
|