From fa872caa597f7a05a82f200fdc150be1db3fd5ca Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 2 Jun 2026 14:15:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=89=88=E6=9C=AC=E5=8F=B7=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=94=B1=20gradle.properties=20=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=8F=91=E5=B8=83=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RELEASE.md | 11 ++++++++--- gradle.properties | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index fb988f6..b5f867b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -12,11 +12,16 @@ ## 2. 更新版本号 +编辑 `gradle.properties`: + +- `app.version.base` 改为新版本号(如 `1.2.0`) + 编辑 `app/build.gradle.kts`: -- `baseVersion` 默认值改为新版本号(如 `"1.2.0"`) - `versionCode` 递增 `+1` +> `app.version.base` 优先于 `build.gradle.kts` 中的默认值,因此以 `gradle.properties` 为准。 + ## 3. 构建 Release APK ```bash @@ -28,7 +33,7 @@ ## 4. 提交、打 Tag、推送 ```bash -git add CHANGELOG.md app/build.gradle.kts +git add CHANGELOG.md gradle.properties app/build.gradle.kts git commit -m "release: vx.y.z" git tag vx.y.z git push origin main --tags @@ -49,7 +54,7 @@ gh release create vx.y.z \ - [ ] CHANGELOG.md 新版本条目已添加(倒序,新版在前) - [ ] CHANGELOG.md 底部链接已添加 -- [ ] `app/build.gradle.kts` 中 `baseVersion` 和 `versionCode` 已更新 +- [ ] `gradle.properties` 中 `app.version.base` 和 `app/build.gradle.kts` 中 `versionCode` 已更新 - [ ] Release APK 构建成功 - [ ] Git tag 已推送 - [ ] GitHub Release 已创建且包含 APK diff --git a/gradle.properties b/gradle.properties index 6c17cf3..b529700 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ org.gradle.parallel=true org.gradle.daemon=true #App -app.version.base=1.0.0 +app.version.base=1.1.0 #Android android.nonTransitiveRClass=true