Skip to content

Commit 2b53d6e

Browse files
committed
release: prepare v1.21.0 cli binaries
1 parent fe4eba6 commit 2b53d6e

20 files changed

Lines changed: 395 additions & 251 deletions

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ jobs:
6666
- name: Install frontend dependencies
6767
run: npm ci
6868

69+
- name: Resolve release version
70+
id: release-version
71+
shell: bash
72+
run: |
73+
version=$(node -p "require('./package.json').version")
74+
echo "version=${version}" >> "$GITHUB_OUTPUT"
75+
6976
- name: Windows smoke check
7077
if: matrix.platform == 'windows-latest'
7178
run: cargo check --manifest-path src-tauri/Cargo.toml
@@ -133,6 +140,55 @@ jobs:
133140
updaterJsonKeepUniversal: true
134141
args: --target ${{ matrix.target }}
135142

143+
- name: Build CLI release binary
144+
shell: bash
145+
run: |
146+
set -euo pipefail
147+
148+
target="${{ matrix.target }}"
149+
dist_dir="cli-dist"
150+
binary_path="src-tauri/target/${target}/release/skills-manager-plus-cli"
151+
152+
cargo build --manifest-path src-tauri/Cargo.toml --release --target "${target}" --bin skills-manager-plus-cli
153+
154+
mkdir -p "${dist_dir}"
155+
case "${target}" in
156+
aarch64-apple-darwin)
157+
asset_name="smp-macos-arm64"
158+
;;
159+
x86_64-apple-darwin)
160+
asset_name="smp-macos-x64"
161+
;;
162+
x86_64-unknown-linux-gnu)
163+
asset_name="smp-linux-x64"
164+
;;
165+
x86_64-pc-windows-msvc)
166+
asset_name="smp-windows-x64.exe"
167+
;;
168+
*)
169+
echo "Unsupported CLI release target: ${target}"
170+
exit 1
171+
;;
172+
esac
173+
174+
artifact_path="${dist_dir}/${asset_name}"
175+
if [[ "${target}" == "x86_64-pc-windows-msvc" ]]; then
176+
cp "${binary_path}.exe" "${artifact_path}"
177+
else
178+
cp "${binary_path}" "${artifact_path}"
179+
chmod +x "${artifact_path}"
180+
fi
181+
182+
node -e "const fs=require('fs'); const crypto=require('crypto'); const path=require('path'); const file=process.argv[1]; const hash=crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex'); fs.writeFileSync(file + '.sha256', hash + ' ' + path.basename(file) + '\n');" "${artifact_path}"
183+
184+
- name: Upload CLI binary to release
185+
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
186+
shell: bash
187+
env:
188+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
189+
run: |
190+
gh release upload "v${{ steps.release-version.outputs.version }}" cli-dist/smp-* --clobber
191+
136192
verify-updater-assets:
137193
needs: build
138194
if: startsWith(github.ref, 'refs/tags/')

CHANGELOG-zh.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/)
66
版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)
77

8+
## [1.21.0] - 2026-05-26
9+
10+
### 发布概览
11+
- **CLI 分发版本** — Skills-Manager-Plus 现在会随 GitHub Release 发布独立 CLI 二进制文件,并将命令行入口统一为更短的 `smp`,方便本机和远程服务器使用。
12+
13+
### 用户可见更新
14+
- **CLI 直接下载** — 发布附件新增 macOS arm64、macOS x64、Linux x64 和 Windows x64 的裸二进制文件,并同时提供 `.sha256` 校验文件。
15+
- **短命令入口** — README、CLI 文档、远程工作区示例和内置 `manage-skills` Skill 已统一使用 `smp`,不再要求用户输入较长的 `skills-manager-plus-cli`
16+
- **远程 CLI 探测** — 远程管理现在优先检测 `smp`,同时兼容已安装的旧命令 `skills-manager-plus-cli`
17+
18+
### 开发者与治理更新
19+
- **发布工作流产物** — tag 驱动的 Build & Release 工作流现在会在桌面应用产物之外,额外构建并上传各平台 CLI 二进制文件。
20+
- **版本一致性** — 应用、Tauri 配置、Rust 包、lockfile 和应用内版本显示已统一更新到 `1.21.0`
21+
822
## [1.20.10] - 2026-05-23
923

1024
### 发布概览

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.21.0] - 2026-05-26
9+
10+
### Release Overview
11+
- **CLI Distribution Release** — Skills-Manager-Plus now publishes standalone CLI binaries with each GitHub Release and standardizes the command-line entrypoint as `smp` for faster local and remote server use.
12+
13+
### User-facing
14+
- **Direct CLI Downloads** — Release assets now include direct binaries for macOS arm64, macOS x64, Linux x64, and Windows x64, each with a `.sha256` checksum file.
15+
- **Short CLI Command** — Documentation, README guidance, remote workspace examples, and the bundled `manage-skills` Skill now use `smp` instead of the longer `skills-manager-plus-cli` command.
16+
- **Remote CLI Detection** — Remote Management now detects `smp` first while still accepting older `skills-manager-plus-cli` installations for compatibility.
17+
18+
### Developer & Governance
19+
- **Release Workflow Assets** — The tag-driven Build & Release workflow now builds and uploads platform-specific CLI binaries alongside the desktop app artifacts.
20+
- **Version Alignment** — Updated the app, Tauri config, Rust package, lockfile, and in-app version strings to `1.21.0`.
21+
822
## [1.20.10] - 2026-05-23
923

1024
### Release Overview

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ You can also add custom tools in `Settings`.
120120
5. Use `Remote Workspace` when you need to manage agent-global Skills on SSH hosts without local/remote sync.
121121
6. Use `Project Workspaces` if you need to compare or exchange project-local skills.
122122
7. Configure `Git Backup` if you want history, restore points, or multi-machine sync.
123-
8. Use `skills-manager-plus-cli` for automation or recovery tasks that should share the desktop app's repository and preset state.
123+
8. Use `smp` for automation or recovery tasks that should share the desktop app's repository and preset state.
124124

125-
The repository also includes `skills/manage-skills/SKILL.md`, an optional Agent Skill that teaches compatible agents to call `skills-manager-plus-cli` instead of writing directly into one agent-specific skills directory.
125+
The repository also includes `skills/manage-skills/SKILL.md`, an optional Agent Skill that teaches compatible agents to call `smp` instead of writing directly into one agent-specific skills directory.
126126

127127
## Development
128128

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ Cursor · Claude Code · Codex · OpenCode · Amp · Kilo Code · Roo Code · Go
120120
5. 如果需要管理 SSH 主机上的 Agent 全局 Skills,使用 `远程工作区`,它不是本地/远程双向同步。
121121
6. 如果需要处理项目本地 Skills,使用 `项目工作区`
122122
7. 如果需要历史记录、恢复点或多机同步,配置 `Git 备份`
123-
8. 如果需要自动化或恢复操作,使用 `skills-manager-plus-cli` 复用桌面端的仓库和预设状态。
123+
8. 如果需要自动化或恢复操作,使用 `smp` 复用桌面端的仓库和预设状态。
124124

125-
仓库同时提供 `skills/manage-skills/SKILL.md`,这是一个可选 Agent Skill,用于让兼容的 Agent 优先调用 `skills-manager-plus-cli`,而不是直接写入某个单独 Agent 的 skills 目录。
125+
仓库同时提供 `skills/manage-skills/SKILL.md`,这是一个可选 Agent Skill,用于让兼容的 Agent 优先调用 `smp`,而不是直接写入某个单独 Agent 的 skills 目录。
126126

127127
## 开发
128128

0 commit comments

Comments
 (0)