بنقرة واحدة
release
Prepare and publish a new Amarok release (stable or beta)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Prepare and publish a new Amarok release (stable or beta)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | release |
| description | Prepare and publish a new Amarok release (stable or beta) |
| disable-model-invocation | true |
| allowed-tools | Read, Glob, Grep, Bash(git:*), Bash(./gradlew:*), Bash(python3:*), Bash(mkdir:*), Bash(wc:*), Bash(ls:*) |
You are preparing a new release for Amarok. Follow the steps below in order, asking for user confirmation at each decision point. Do not skip steps.
app/build.gradle (versionCode and versionName).git log since the last tag to understand what changed.0.10.0 → 0.11.0-beta1), round versionCode up to next multiple of 10 (e.g., 124 → 130).-beta1 → -beta2), increment versionCode by 1.0.10.0 → 0.10.1), increment versionCode by 1.For stable releases only:
GITHUB_TOKEN=<token> gh pr list -R deltazefiro/Amarok-Hider --search "translation"(by Name <email>) lines that the translation credit script depends on.git pull origin main to pull them in.git status --short should be empty). If not, ask user to resolve../gradlew assemble (timeout 300s). If it fails, stop and report the error.Edit app/build.gradle to update versionCode and versionName to the values confirmed in Step 1.
git log <last-tag>..HEAD --oneline --no-merges to get the full commit list.Run:
GITHUB_TOKEN=<token> python3 .github/scripts/summarize_translation_contrib.py --start <last-tag> --end HEAD
If the script requires a GitHub token and one hasn't been provided yet, ask the user for it. Store it for later use in Step 7.
Create fastlane/metadata/android/en-US/changelogs/<versionCode>.txt following this format:
v<versionName>
- Change 1
- Change 2 (#issue)
...
Create tmp/release_note_v<versionName>.md following the format below.
For stable releases:
## ChangeLog
- Feature or fix description (#issue)
- <translation credit line from script>
> The `@username` credits are generated by a [script](https://github.com/deltazefiro/Amarok-Hider/blob/main/.github/scripts/summarize_translation_contrib.py) based on your Weblate email. If you notice any mistakes, please open an issue.
## 更新内容
- Chinese translation of each changelog item
- 更新社区翻译(详见上文)
**Full Changelog**: https://github.com/deltazefiro/Amarok-Hider/compare/<last-tag>...v<versionName>
## 下载版本说明 / Which version should I download?
- **First time install** / 首次安装:
→ Use the version without any suffix / 请下载「无后缀」版本
- **Updating** / 升级已有安装:
- Installed from _F-Droid_ or _IzzyOnDroid_ / 原先通过 F-Droid 或 IzzyOnDroid 安装:
→ Use the version with `-foss` suffix / 请下载带 `-foss` 后缀的版本
- Installed from _Coolapk_, _GitHub_, _AppCenter_ or other channels / 原先通过酷安、AppCenter、GitHub 或其他渠道安装:
→ Use the version without suffix / 请下载「无后缀」版本
For beta releases, prepend this warning block before the ChangeLog:
> [!warning]
> This is a pre-release version. Get the latest stable release [here](https://github.com/deltazefiro/Amarok-Hider/releases/latest/).
> 这是一个不稳定预览版本。请在[这里](https://github.com/deltazefiro/Amarok-Hider/releases/latest/)下载最新的稳定版本。
Omit the translation credit section and its note in beta releases.
Tell the user to review both files. Wait for confirmation before proceeding.
app/build.gradle and the fastlane changelog file.chore: Bump version to v<versionName> (<versionCode>)git tag v<versionName>git push origin main --tagsAsk the user for their GitHub token if not already obtained.
GITHUB_TOKEN=<token> gh release create v<versionName> \
-R deltazefiro/Amarok-Hider \
--title "Amarok v<versionName>" \
--notes-file tmp/release_note_v<versionName>.md \
--draft \
<if beta: --prerelease>
Report the release URL to the user. Remind them to review and publish when ready