Skip to content

Commit

Permalink
We use the same base build, add release date to distinguish between d…
Browse files Browse the repository at this point in the history
…ifferent modded builds
  • Loading branch information
anyuta1166 committed Mar 10, 2022
1 parent 9365aba commit 95da4c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android {
val vCode = System.getenv("VERSION_CODE")?.toIntOrNull() ?: 1
versionCode = vCode
versionName = "$ver-$vCode"
buildConfigField("String", "VERSION_DATE", "\"${System.getenv("VERSION_DATE") ?: ""}\"")

manifestPlaceholders["sentryRelease"] = "$applicationId@$versionName"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class SettingsFragment : PreferenceFragmentCompat(), SettingsView {

findPreference<Preference>("version")?.let {
it.isCopyingEnabled = true
it.summary = BuildConfig.VERSION_NAME
it.summary = "${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_DATE})"
}

presenter.onCreate()
Expand Down
5 changes: 4 additions & 1 deletion release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ SET TAGS=%%F
SET /A "VC=%COMMITS%+%TAGS%"
IF "%VC%" GEQ "328" SET /A "VC=%COMMITS%+%TAGS%+%OFFSET%"
IF "%VC%" GEQ "775" SET /A "VC=(%COMMITS%+%TAGS%)<<1"
SET VERSION_DATE=20220310
echo Version %VERSION%
echo Version Code %VC%
echo Version Date %VERSION_DATE%
SETX VERSION %VERSION%
SETX VERSION_CODE %VC%
SETX VERSION_DATE %VERSION_DATE%
SETX KEYSTORE_PASSWORD password
SETX KEYSTORE_ALIAS testkey
SETX KEYSTORE_ALIAS_PASSWORD android
echo Home Assistant-%VERSION%-%VC%> release-name.txt
echo Home Assistant-%VERSION%-%VC% (%VERSION_DATE%)> release-name.txt
pause

0 comments on commit 95da4c5

Please sign in to comment.