diff --git a/app_pojavlauncher/build.gradle b/app_pojavlauncher/build.gradle index 9fa6745e3..d34ddf6af 100644 --- a/app_pojavlauncher/build.gradle +++ b/app_pojavlauncher/build.gradle @@ -7,7 +7,7 @@ static def getDate() { return new Date().format('yyyyMMdd') } def getVersionName = { // Get the last version tag, as well as the short head of the last commit ByteArrayOutputStream TAG = new ByteArrayOutputStream() - ByteArrayOutputStream BRANCH = new ByteArrayOutputStream() + String semVer = "1.0.0" // Used by the fallback for github actions ByteArrayOutputStream TAG_PART_COMMIT = new ByteArrayOutputStream() String TAG_STRING @@ -48,17 +48,7 @@ def getVersionName = { } - exec { - try { - commandLine 'git', 'branch', '--show-current' - ignoreExitValue true - standardOutput = BRANCH - } catch (Exception e) { - e.printStackTrace(); - } - } - - return TAG_STRING.trim().replace("-g", "-") + "-" + BRANCH.toString().trim() + return TAG_STRING.trim().replace("-g", "-") + "-" + semVer } def getCFApiKey = {