bump-version
在所有DecentPaste配置文件(package.json、Cargo.toml、tauri.conf.json、downloads.json)中升级版本号。用于版本更新而不进行构建。
📖 中文导读:在所有DecentPaste配置文件(package.json、Cargo.toml、tauri.conf.json、downloads.json)中升级版本号。用于版本更新而不进行构建。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: bump-version description: Bump version numbers across all DecentPaste config files (package.json, Cargo.toml, tauri.conf.json, downloads.json). Use for version updates without building.
Bump Version
Update version (x.x.x) across all config files.
Files
| File | Field |
|---|---|
decentpaste-app/package.json |
"version" |
decentpaste-app/src-tauri/Cargo.toml |
version |
decentpaste-app/src-tauri/tauri.conf.json |
"version" |
website/downloads.json |
version, tag (v-prefix), asset URLs |
decentpaste-app/src-tauri/gen/apple/...project.pbxproj |
MARKETING_VERSION (if iOS project exists) |
Workflow
- Read current version from
tauri.conf.json - Ask new version (validate:
^\d+\.\d+\.\d+$) - Edit all 4 files (
replace_all: truefor downloads.json URLs) - If
gen/apple/exists, update Share Extension:sed -i '' 's/MARKETING_VERSION = OLD;/MARKETING_VERSION = NEW;/g' ...project.pbxproj - List updated files, remind to commit