https://kotlinlang.org logo
Title
e

enighma

08/12/2022, 7:23 PM
TLDR; how do I create a distributable image for another MacOS platform I have a compose desktop project and I want to create a dmg for x64 macs (mine is m1). Is all I need to do change:
implementation(compose.desktop.currentOs)
to
implementation(compose.desktop.macos_x64)
and run the gradle task:
packageDmg
? Because when I had someone try the dmg file, the app had a cross over it.
t

Thomas

08/12/2022, 8:02 PM
You need to use an x64 jdk
e

enighma

08/12/2022, 8:32 PM
When I select download JDK from IJ would this be what's called aarch64? or the one without any designation? Or would it even be filtered out? I.e. I have to manually download it
t

Thomas

08/12/2022, 8:33 PM
Definitely not aarch64 so the other one. Not near a Mac so can't check
Also remember to set it in the build.gradle.kts in your compose config
e

enighma

08/12/2022, 8:38 PM
ok, I think I managed to solve it. Because it's bundling the x64 version of libskio I managed to get the cross to disappear but it just quits upon launch. So, now I have to figure out where macos logs why it crashed
Also remember to set it in the build.gradle.kts in your compose config
You mean
implementation(compose.desktop.macos_x64)
right? or what other config is there?
You could also try running the gradle build using Rosetta
e

enighma

08/12/2022, 9:58 PM
Interesting. Some things for me to try there
s

Sean Proctor

08/15/2022, 9:29 PM
For binaries to run on recent versions of MacOS, they need to be signed.