Fix release update version checking & update release note template

This commit is contained in:
Cuong-Tran 2024-10-29 11:58:02 +07:00
parent 3f00487e95
commit fde71c0b70
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
10 changed files with 23 additions and 27 deletions

View file

@ -53,7 +53,7 @@ body:
label: Komikku version
description: You can find your Komikku version in **More → About**.
placeholder: |
Example: "1.11.2"
Example: "1.12.1"
validations:
required: true
@ -98,7 +98,7 @@ body:
required: true
- label: I have gone through the [FAQ](https://mihon.app/docs/faq/general) and [troubleshooting guide](https:/mihon.app/docs/guides/troubleshooting/).
required: true
- label: I have updated the app to version **[1.11.2](https://github.com/komikku-app/komikku/releases/latest)**.
- label: I have updated the app to version **[1.12.1](https://github.com/komikku-app/komikku/releases/latest)**.
required: true
- label: I have updated all installed extensions.
required: true

View file

@ -33,7 +33,7 @@ body:
required: true
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/komikku-app/extensions/issues/new/choose).
required: true
- label: I have updated the app to version **[1.11.2](https://github.com/komikku-app/komikku/releases/latest)**.
- label: I have updated the app to version **[1.12.1](https://github.com/komikku-app/komikku/releases/latest)**.
required: true
- label: I will fill out all of the requested information in this form.
required: true

View file

@ -215,17 +215,17 @@ jobs:
tag_name: ${{ needs.prepare-build.outputs.TAG_NAME }}
name: Komikku Preview ${{ needs.prepare-build.outputs.TAG_NAME }} (${{ needs.prepare-build.outputs.VERSION_TAG }})
body: |
### What's Changed
#### New
#### What's Changed
##### New
#### Improve
##### Improve
#### Fix
**Full Changelog**: https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.TAG_NAME }}
##### Fix
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
**Full Changelog**: [${{ needs.prepare-build.outputs.TAG_NAME }}](https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.TAG_NAME }})
---
### Checksums

View file

@ -191,18 +191,18 @@ jobs:
tag_name: ${{ needs.prepare-build.outputs.VERSION_TAG }}
name: Komikku ${{ needs.prepare-build.outputs.VERSION_TAG }}
body: |
### What's Changed
#### New
#### What's Changed
##### New
#### Improve
##### Improve
#### Fix
##### Fix
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
##### Based on
**Full Changelog**: https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }}
${{ needs.prepare-build.outputs.COMMIT_LOGS }}
**Full Changelog**: [${{ needs.prepare-build.outputs.VERSION_TAG }}](https://github.com/komikku-app/komikku/compare/${{ needs.prepare-build.outputs.PREV_TAG_NAME }}...${{ needs.prepare-build.outputs.VERSION_TAG }})
---

View file

@ -33,7 +33,7 @@ android {
applicationId = "app.komikku"
versionCode = 71
versionName = "1.12.0"
versionName = "1.12.1"
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
buildConfigField("String", "COMMIT_SHA", "\"${getGitSha()}\"")

View file

@ -16,11 +16,6 @@ class AppUpdateChecker(
private val getApplicationRelease: GetApplicationRelease by injectLazy()
suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result {
// Disable app update checks for older Android versions that we're going to drop support for
// if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
// return GetApplicationRelease.Result.OsTooOld
// }
return withIOContext {
val result = getApplicationRelease.await(
GetApplicationRelease.Arguments(

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog bulletedList="true">
<changelogversion versionName="1.11.3" changeDate="Oct 28, 2024">
<changelogversion versionName="1.12.1" changeDate="Oct 29, 2024">
<changelogtext>[b]New:[/b] Error screen</changelogtext>
<changelogtext>[b]New:[/b] Hidden categories</changelogtext>
<changelogtext>[b]New:[/b] Range-selection for Migration</changelogtext>

View file

@ -48,7 +48,7 @@ val gitHubUsernameMentionRegex =
* to: [komikku-app/komikku@23d862d17...48fb4a2e6](https://github.com/komikku-app/komikku/compare/23d862d17...48fb4a2e6)
*/
val gitHubCommitsCompareRegex =
"""https://github.com/(?<owner>[^/]+)/(?<repo>[^/]+)/compare/(?<from>[0-9a-f.rv]+)\.\.\.(?<to>[0-9a-f.rv]+)"""
"""(\[[^]+]]\()?https://github.com/(?<owner>[^/]+)/(?<repo>[^/]+)/compare/(?<from>[0-9a-f.rv]+)\.\.\.(?<to>[0-9a-f.rv]+)\)?"""
.toRegex(RegexOption.IGNORE_CASE)
// KMK <--

View file

@ -117,6 +117,7 @@ class GetApplicationRelease(
if (newSemVer[index] > i) {
return true
}
if (newSemVer[index] < i) return false
}
false

View file

@ -16,9 +16,9 @@ import java.time.Instant
class GetApplicationReleaseTest {
lateinit var getApplicationRelease: GetApplicationRelease
lateinit var releaseService: ReleaseService
lateinit var preference: Preference<Long>
private lateinit var getApplicationRelease: GetApplicationRelease
private lateinit var releaseService: ReleaseService
private lateinit var preference: Preference<Long>
@BeforeEach
fun beforeEach() {