Skip to content

Commit

Permalink
packaging: Only include binaries in copyReleaseBinaries task
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Jun 24, 2024
1 parent 93c9ed3 commit 86871e9
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ReleaseBinariesTaskFactory(private val project: Project) {
val releaseDir: Provider<Directory> = project.layout.buildDirectory.dir("packaging/release")
project.tasks.register<Copy>("copyReleaseBinaries") {
from(inputBinariesProperty)
include("*.dmg", "*.deb", "*.exe", "*.rpm")
into(releaseDir)
/* Bisq 1: "Bisq-1.9.15.dmg" -> "Bisq-1.9.15.dmg"
"bisq_1.9.15-1_amd64.deb" -> "Bisq-64bit-1.9.15.deb"
Expand Down Expand Up @@ -78,11 +79,14 @@ class ReleaseBinariesTaskFactory(private val project: Project) {
fun registerMergeOsSpecificJarHashesTask() {
val files = project.files(
inputBinariesProperty.map { inputDir ->
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-mac.jar.SHA-256" },
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-mac.jar.SHA-256"
},
inputBinariesProperty.map { inputDir ->
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-linux.jar.SHA-256" },
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-linux.jar.SHA-256"
},
inputBinariesProperty.map { inputDir ->
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-windows.jar.SHA-256" }
"$inputDir/desktop-${PackagingPlugin.APP_VERSION}-all-windows.jar.SHA-256"
}
)
val mergedShaFile: Provider<RegularFile> = project.layout.buildDirectory
.file("packaging/release/Bisq-${PackagingPlugin.APP_VERSION}.jar.txt")
Expand Down

0 comments on commit 86871e9

Please sign in to comment.