From 3eeec64d453d37163014c29e27d8827af4f2fea9 Mon Sep 17 00:00:00 2001 From: alexytomi <60690056+alexytomi@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:27:54 +0800 Subject: [PATCH] build: Set versioncode to fixed number 10000000 Should now allow downgrades. --- app_pojavlauncher/build.gradle | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app_pojavlauncher/build.gradle b/app_pojavlauncher/build.gradle index 99caaa7bf..374ada44b 100644 --- a/app_pojavlauncher/build.gradle +++ b/app_pojavlauncher/build.gradle @@ -4,14 +4,6 @@ plugins { static def getDate() { return new Date().format('yyyyMMdd') } -static def getDateSeconds() { - if (System.getenv("GITHUB_ACTIONS") == "true") { - return 9934841 + Integer.parseInt(System.getenv("GITHUB_RUN_NUMBER")) - } else { - return 172005 - } -} - def getVersionName = { // Get the last version tag, as well as the short head of the last commit ByteArrayOutputStream TAG = new ByteArrayOutputStream() @@ -115,7 +107,7 @@ android { applicationId "org.angelauramc.amethyst" minSdkVersion 21 targetSdkVersion 34 - versionCode getDateSeconds() + versionCode 10000000 versionName getVersionName() multiDexEnabled true //important resValue 'string', 'curseforge_api_key', getCFApiKey()