Package: Fix issue with raspi build

Fix packaging issue which sometimes caused issues with creating the raspi package on Windows (and other environments where a recent ./gradlew :desktop:build was not run recently).
This commit is contained in:
cd2357 2021-05-20 22:56:59 +02:00
parent 31b40d3fa6
commit 0109d92aa0
No known key found for this signature in database
GPG Key ID: F26C56748514D0D3

View File

@ -169,9 +169,8 @@ task retrieveAndExtractJavaBinaries {
task packageInstallers {
description 'Call jpackage to prepare platform-specific binaries for this platform'
dependsOn 'retrieveAndExtractJavaBinaries'
// Clean all previous artefacts and create a fresh shadowJar for the installers
dependsOn rootProject.clean
dependsOn ':desktop:shadowJar'
dependsOn ':desktop:build' // Full build needed for "desktop/build/app/lib", used for raspi package
doLast {
String jPackageFilePath = retrieveAndExtractJavaBinaries.property('jpackageFilePath')
@ -211,8 +210,7 @@ task packageInstallers {
String appVersion = version.replaceAll("-SNAPSHOT", "")
println "Packaging Bisq version ${appVersion}"
// zip jar lib for Raspberry Pi only on macOS as there are path issues on Windows and it is only needed once
// for the release
// zip jar lib for Raspberry Pi only on macOS as it is only needed once for the release
if (Os.isFamily(Os.FAMILY_MAC)) {
println "Zipping jar lib for raspberry pi"
ant.zip(basedir: "${project(':desktop').buildDir}/app/lib",