Skip to content

Commit 4bf2e84

Browse files
committed
feat: enhance CLI with interactive mode, better UX, and robust error handling
- Integrated `clap` for structured argument parsing and `dialoguer` for an interactive fallback mode when arguments are missing. - Added `anyhow` for contextual error handling and `colored` for improved terminal output (success, warnings, errors). - Enhanced automatic detection for app version and public key, supporting both project root and `src-tauri` directory structures. - Added support for both Tauri 1.0 (`tauri.updater.pubkey`) and 2.0 (`plugins.updater.pubkey`) configuration paths. - Fixed a bug in `src-tauri/Cargo.toml` parsing and restored signature validation for non-DMG platforms. - Added a guard to prevent generating an empty `latest.json` if no valid platforms are found. - Bumped version to 0.4.0 and updated README.md and CHANGELOG.md to reflect new features.
1 parent ca480cd commit 4bf2e84

5 files changed

Lines changed: 763 additions & 242 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ All notable changes to this project are documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7-
## [Unreleased]
7+
## [0.4.0] - 2026-04-27
8+
9+
### Added
10+
11+
- Interactive mode: prompts for missing arguments (`download_url_base`, `notes`) if they are not provided via CLI.
12+
- Enhanced CLI UX with colorized output (success, warnings, errors).
13+
- Structured argument parsing and help messages using `clap`.
14+
- Improved error handling with context using `anyhow`.
15+
16+
### Changed
17+
18+
- Refactored core logic to use modern CLI crates (`clap`, `anyhow`, `colored`).
19+
- Improved automatic detection of version and public key from both project root and `src-tauri` directories.
20+
- Support for both Tauri 1.0 (`tauri.updater.pubkey`) and 2.0 (`plugins.updater.pubkey`) configuration paths.
821

922
## [0.3.1] - 2026-04-27
1023

0 commit comments

Comments
 (0)