From 3c8ce2b72daccccc88278b8dfbff1a1acc39096c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 21 Feb 2026 20:37:20 +0900 Subject: feat(self-update): implement command to update Mozart via GitHub Releases Add full self-update functionality: fetch releases from GitHub API, download platform-specific binaries, atomically replace the running executable using self-replace, and support --rollback and --preview flags. Includes backup management and 12 unit tests. Co-Authored-By: Claude Opus 4.6 --- crates/mozart/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/mozart/Cargo.toml') diff --git a/crates/mozart/Cargo.toml b/crates/mozart/Cargo.toml index 12da556..287f800 100644 --- a/crates/mozart/Cargo.toml +++ b/crates/mozart/Cargo.toml @@ -15,12 +15,13 @@ md5 = "0.7" pubgrub = "0.3.0" regex = "1.12.3" reqwest = { version = "0.13.2", features = ["blocking", "json"] } +self-replace = "1" serde = { version = "1.0.228", features = ["derive"] } serde_json = "1.0.149" sha1 = "0.10" tar = "0.4" +tempfile = "3.25.0" tokio = { version = "1.49.0", features = ["full"] } zip = { version = "2", default-features = false, features = ["deflate"] } [dev-dependencies] -tempfile = "3.25.0" -- cgit v1.3.1