docs: simplify install instructions, recommend target/release/czdev

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
LiHaohua
2026-05-09 15:16:19 +08:00
co-authored by Claude Opus 4.6
parent 34e3f771cd
commit 1493007450
+11 -26
View File
@@ -148,37 +148,22 @@ cargo run -p czdev --release -- deploy \
### 8. Publishing to the AppStore
```bash
# Install czdev (one-time, or build from source: cargo build --release -p czdev)
curl -fsSL https://github.com/m5stack/CardputerZero-AppBuilder/releases/latest/download/czdev-macos-aarch64 -o czdev
chmod +x czdev && sudo mv czdev /usr/local/bin/
# Login to GitHub (one-time)
czdev login
./target/release/czdev login
# Auto-bump patch version and publish
czdev bump --deb build/my_app_1.0.0_arm64.deb # → my_app_1.0.1_arm64.deb
czdev publish --deb build/my_app_1.0.1_arm64.deb
# Check next version
./target/release/czdev bump --deb build/my_app_1.0.0_arm64.deb
# Or publish directly (version in deb must be newer than existing)
czdev publish --deb build/my_app_2.0.0_arm64.deb
# Publish (version in deb must be newer than existing)
./target/release/czdev publish --deb build/my_app_1.0.1_arm64.deb
# Remove your own package
czdev unpublish my_app --version 1.0.1
./target/release/czdev unpublish my_app --version 1.0.1
```
## Install czdev
**Option A — Download prebuilt binary (recommended):**
| Platform | Command |
|----------|---------|
| macOS Apple Silicon | `curl -fsSL https://github.com/m5stack/CardputerZero-AppBuilder/releases/latest/download/czdev-macos-aarch64 -o czdev && chmod +x czdev && sudo mv czdev /usr/local/bin/` |
| macOS Intel | `curl -fsSL .../czdev-macos-x86_64 -o czdev && chmod +x czdev && sudo mv czdev /usr/local/bin/` |
| Linux x86_64 | `curl -fsSL .../czdev-linux-x86_64 -o czdev && chmod +x czdev && sudo mv czdev /usr/local/bin/` |
| Linux aarch64 | `curl -fsSL .../czdev-linux-aarch64 -o czdev && chmod +x czdev && sudo mv czdev /usr/local/bin/` |
| Windows | Download `czdev-windows-x86_64.exe` from [Releases](https://github.com/m5stack/CardputerZero-AppBuilder/releases) |
**Option B — Build from source:**
**Option A — Build from source (recommended):**
```bash
git clone --recursive git@github.com:m5stack/CardputerZero-AppBuilder.git
@@ -187,11 +172,11 @@ cargo build --release -p czdev
# Binary at: target/release/czdev
```
**Option C — cargo install:**
Then use directly: `./target/release/czdev <command>`
```bash
cargo install --git https://github.com/m5stack/CardputerZero-AppBuilder czdev
```
**Option B — Download prebuilt binary:**
Download from [Releases](https://github.com/m5stack/CardputerZero-AppBuilder/releases) for your platform (macOS/Linux/Windows).
## CI Online Build