mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +00:00
revert commit hash in about dialog
This commit is contained in:
parent
9c40c56c6c
commit
192657fa69
3 changed files with 0 additions and 25 deletions
19
build.gradle
19
build.gradle
|
@ -18,15 +18,6 @@ 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}"
|
||||
|
||||
|
@ -131,21 +122,11 @@ compileJava {
|
|||
}
|
||||
|
||||
processResources {
|
||||
doFirst {
|
||||
delete fileTree("$buildDir/resources/main/com/sparrowwallet/sparrow") {
|
||||
include "about.fxml"
|
||||
}
|
||||
}
|
||||
doLast {
|
||||
delete fileTree("$buildDir/resources/main/native").matching {
|
||||
exclude "${osName}/${osArch}/**"
|
||||
}
|
||||
}
|
||||
filesMatching('**/about.fxml') {
|
||||
filter { line ->
|
||||
line.replace('<!--COMMIT_HASH-->', "<Label text=\"Commit Hash: ${getCommitHash()}\" styleClass=\"commit-hash\"/>")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
|
@ -13,7 +13,3 @@
|
|||
-fx-padding: 10 25 25 25;
|
||||
}
|
||||
|
||||
.commit-hash {
|
||||
-fx-opacity: 0.3;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
<HBox><Label text="If you find Sparrow useful, consider donating at "/><Hyperlink text="https://sparrowwallet.com/donate" onAction="#openDonate"/></HBox>
|
||||
</VBox>
|
||||
<HBox styleClass="button-area" alignment="BOTTOM_RIGHT" VBox.vgrow="SOMETIMES">
|
||||
<!--COMMIT_HASH-->
|
||||
<Region HBox.hgrow="ALWAYS" />
|
||||
<Button text="Close" onAction="#close" />
|
||||
</HBox>
|
||||
</VBox>
|
||||
|
|
Loading…
Reference in a new issue