Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Oct 14, 2024
2 parents e2019fd + f12be51 commit 950716c
Show file tree
Hide file tree
Showing 3 changed files with 359 additions and 300 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ allprojects{
return project.getProperties()["buildversion"]
}

getCommitHash = {
return 'git rev-parse --verify --short HEAD'.execute().text.trim()
}

getPackage = {
return project.ext.mainClassName.substring(0, project.ext.mainClassName.indexOf("desktop") - 1)
}
Expand Down Expand Up @@ -133,6 +137,10 @@ allprojects{
props["number"] = versionNumber
props["modifier"] = versionModifier
props["build"] = buildid
props["commitHash"] = "unknown"
if(project.hasProperty("showCommitHash")){
props["commitHash"] = getCommitHash()
}

props.store(pfile.newWriter(), "Autogenerated file. Do not modify.")
}
Expand Down
Loading

0 comments on commit 950716c

Please sign in to comment.