diff --git a/Cargo.lock b/Cargo.lock index 26e54d7..665500b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -21,7 +21,7 @@ dependencies = [ [[package]] name = "agent-manager" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 6cd41e8..e5588ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "agent-manager" -version = "0.2.0" +version = "0.2.1" edition = "2021" description = "Manage local AI coding agents: list, install, start, stop, update — with automatic dependency handling and a YAML-driven catalog." license = "MIT" diff --git a/RELEASING.md b/RELEASING.md index aa60d25..354d4c3 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -8,11 +8,19 @@ fonctionnel). ## 1. Bumper la version -Dans Cargo.toml (ex. `0.2.0`), puis : +Dans Cargo.toml (ex. `0.2.1`), puis mettre à jour Cargo.lock +(`cargo check`) et compiler : cargo build --release # binaire Windows (am.exe) sur Windows - # sur une machine Linux : - cargo build --release # binaire Linux (am) + + # binaire Linux STATIQUE (musl) : compatible toutes distributions, + # y compris Debian 12 (glibc 2.36) — ne JAMAIS publier un binaire glibc + # compilé sur une base récente. + docker run --rm -v "${PWD}:/work" -w /work -e CARGO_TARGET_DIR=/tmp/target-musl \ + rust:1.94-alpine sh -c "apk add --no-cache build-base && \ + rustup target add x86_64-unknown-linux-musl && \ + cargo build --release --locked --target x86_64-unknown-linux-musl && \ + cp /tmp/target-musl/x86_64-unknown-linux-musl/release/am dist/am-linux-x86_64" ## 2. Créer les archives des binaires @@ -20,9 +28,10 @@ Windows (PowerShell) : Compress-Archive target\release\am.exe am-windows-x86_64.zip -Linux : +Linux (l'archive doit contenir un fichier nommé « am ») : - tar -czf am-linux-x86_64.tar.gz -C target/release am + docker run --rm -v "${PWD}:/work" -w /work rust:1.94-alpine sh -c \ + "cd dist && cp am-linux-x86_64 am && tar -czf am-linux-x86_64.tar.gz am && rm am" ## 3. Créer la release sur Gitea