金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

bump-version

bump-version 是面向软件开发的 Agent Skill,来自 decentpaste/decentpaste。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Bump version numbers across all DecentPaste config files (package.json, Cargo.toml, tauri.conf.json, downloads.json). Use for version updates without building.

SKILL.md

下载 MD ↓
namebump-version
descriptionBump 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

  1. Read current version from tauri.conf.json
  2. Ask new version (validate: ^\d+\.\d+\.\d+$)
  3. Edit all 4 files (replace_all: true for downloads.json URLs)
  4. If gen/apple/ exists, update Share Extension: sed -i '' 's/MARKETING_VERSION = OLD;/MARKETING_VERSION = NEW;/g' ...project.pbxproj
  5. List updated files, remind to commit

来源:decentpaste/decentpaste · Apache-2.0 许可 · 许可原文 · MD 为来源页保存的历史版本