From c3b12c6abb2e02daa359d9e8d276ce8a0ddac2d1 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Fri, 16 Aug 2024 15:32:17 +0000 Subject: [PATCH] packaging: Add Windows MSI support Users have to manually update Bisq and to support auto-updates we need to ship msi files. We can't use the existing exe file because it requires user interaction during installation or updating. --- .../gradle/packaging/jpackage/package_formats/PackageFormat.kt | 1 + .../gradle/packaging/jpackage/package_formats/WindowsPackage.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/PackageFormat.kt b/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/PackageFormat.kt index 2769b011ac..f1dd56f690 100644 --- a/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/PackageFormat.kt +++ b/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/PackageFormat.kt @@ -4,5 +4,6 @@ enum class PackageFormat(val fileExtension: String) { DEB("deb"), DMG("dmg"), EXE("exe"), + MSI("msi"), RPM("rpm") } diff --git a/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/WindowsPackage.kt b/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/WindowsPackage.kt index 9e78798d9c..a68e87e147 100644 --- a/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/WindowsPackage.kt +++ b/build-logic/packaging/src/main/kotlin/bisq/gradle/packaging/jpackage/package_formats/WindowsPackage.kt @@ -3,7 +3,7 @@ package bisq.gradle.packaging.jpackage.package_formats import java.nio.file.Path class WindowsPackage(private val resourcesPath: Path) : JPackagePackageFormatConfigs { - override val packageFormats = setOf(PackageFormat.EXE) + override val packageFormats = setOf(PackageFormat.EXE, PackageFormat.MSI) override fun createArgumentsForJPackage(packageFormat: PackageFormat): List = mutableListOf(