Skip to content

Commit 64a3b83

Browse files
committed
macOS Distribution fixes
1 parent 24cd7f0 commit 64a3b83

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ tasks.compileJava{
109109
}
110110

111111
tasks.register<Exec>("installCreateDmg") {
112-
commandLine("brew", "install", "--quiet", "create-dmg")
112+
onlyIf { org.gradle.internal.os.OperatingSystem.current().isMacOsX }
113+
commandLine("arch", "-arm64", "brew", "install", "--quiet", "create-dmg")
113114
}
114115
tasks.register<Exec>("packageCustomDmg"){
116+
onlyIf { org.gradle.internal.os.OperatingSystem.current().isMacOsX }
115117
group = "compose desktop"
116118

117119
val distributable = tasks.named<AbstractJPackageTask>("createDistributable").get()

0 commit comments

Comments
 (0)