|
|
@ -18,6 +18,15 @@ if(System.getProperty("os.arch") == "aarch64") { |
|
|
|
targetName = "-" + osArch |
|
|
|
} |
|
|
|
|
|
|
|
def getCommitHash = { -> |
|
|
|
def stdout = new ByteArrayOutputStream() |
|
|
|
exec { |
|
|
|
commandLine 'git', 'rev-parse', '--short', 'HEAD' |
|
|
|
standardOutput = stdout |
|
|
|
} |
|
|
|
return stdout.toString().trim() |
|
|
|
} |
|
|
|
|
|
|
|
group "com.sparrowwallet" |
|
|
|
version "${sparrowVersion}" |
|
|
|
|
|
|
@ -127,6 +136,11 @@ processResources { |
|
|
|
exclude "${osName}/${osArch}/**" |
|
|
|
} |
|
|
|
} |
|
|
|
filesMatching('**/about.fxml') { |
|
|
|
filter { line -> |
|
|
|
line.replace('<!--COMMIT_HASH-->', "<Label text=\"Commit Hash: ${getCommitHash()}\" styleClass=\"commit-hash\"/>") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
test { |
|
|
|