mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Save deterministic jar hash
Store the SHA-256 of the deterministic jar next to the generated binaries.
This commit is contained in:
parent
c03ff3c35c
commit
b7188ecf72
1 changed files with 7 additions and 1 deletions
|
@ -208,9 +208,15 @@ task packageInstallers {
|
|||
|
||||
// We convert the fat jar into a deterministic one by stripping out comments with date, etc.
|
||||
// jar file created from https://github.com/ManfredKarrer/tools
|
||||
executeCmd("sdf")
|
||||
executeCmd("java -jar \"${project(':desktop').projectDir}/package/tools-1.0.jar\" ${fatJarFolderPath}/${mainJarName}")
|
||||
|
||||
// Store deterministic jar SHA-256
|
||||
ant.checksum(file: "${fatJarFolderPath}/${mainJarName}", algorithm: 'SHA-256')
|
||||
copy {
|
||||
from "${fatJarFolderPath}/${mainJarName}.SHA-256"
|
||||
into binariesFolderPath
|
||||
}
|
||||
|
||||
// TODO For non-modular applications: use jlink to create a custom runtime containing only the modules required
|
||||
|
||||
// See jpackager argument documentation:
|
||||
|
|
Loading…
Add table
Reference in a new issue