diff --git a/desktop/package/package.gradle b/desktop/package/package.gradle index 3fe3ccbd23..19a32aa1a6 100644 --- a/desktop/package/package.gradle +++ b/desktop/package/package.gradle @@ -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: