Skip to content

Commit

Permalink
处理脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
long lahm committed Nov 27, 2019
1 parent 5673048 commit 2ca373f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def static gitVersionCode() {
*/
def static gitVersionName() {
def cmd = 'git describe --tags'
def name = cmd.execute().text.trim()
def tag = cmd.execute().text.trim()
def arr = tag.split("-")
def name = arr[0]
return name
}

0 comments on commit 2ca373f

Please sign in to comment.