TLDR; how do I create a distributable image for an...
# compose-desktop
e
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:
Copy code
implementation(compose.desktop.currentOs)
to
Copy code
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
You need to use an x64 jdk
e
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
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
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
Copy code
implementation(compose.desktop.macos_x64)
right? or what other config is there?
You could also try running the gradle build using Rosetta
e
Interesting. Some things for me to try there
s
For binaries to run on recent versions of MacOS, they need to be signed.