mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 14:16:29 +08:00
menu style
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ static def VersionCode() {
|
||||
|
||||
static def VersionName() {
|
||||
try {
|
||||
def process = 'git describe --tags --always'.execute()
|
||||
def process = "git describe --tags --always | sed 's/v/ /g' | sed 's/\\./ /g' | sed 's/-/ /g' | awk '{print \$1*16777216+\$2*65536+\$3*256+\$4}'".execute()
|
||||
process.waitFor()
|
||||
return process.text.trim() - "v"
|
||||
} catch (ignored) {
|
||||
|
||||
Reference in New Issue
Block a user