mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
Android: Fix incorrect version string on build
This commit is contained in:
parent
4f32f2f915
commit
bea6f0beb4
|
@ -59,7 +59,7 @@ def getVersion() {
|
||||||
def versionNumber = '0.0-unknown'
|
def versionNumber = '0.0-unknown'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
versionNumber = 'git describe --tags --exclude latest'.execute([], project.rootDir).text
|
versionNumber = 'git describe --tags --exclude latest --exclude preview'.execute([], project.rootDir).text
|
||||||
.trim()
|
.trim()
|
||||||
.replaceAll(/(-0)?-[^-]+$/, "")
|
.replaceAll(/(-0)?-[^-]+$/, "")
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue