When i build my compose desktop app it run fine when building in intellij but when i use the
packageReleaseDmg
task the app doesnt have access to the internet on mac. Has anyone seen this before? I've been trying different things like adding various plist keys
NSAppTransportSecurity
- but still nothing. Additionally i don't seem to be able to see app output (System.err, System.out) messages?
Does anyone have tips on this - have you had to do any special so desktop apps can load internet resources?
m
Michael Paus
02/21/2025, 5:01 PM
Have you tried
Copy code
./gradlew createReleaseDistributable
I am not doing anything special for macOS and I am using the internet all the time. Customers have also not reported any problems with that.
r
Robert Munro
02/21/2025, 5:07 PM
does that create a dmg? it doesnt seem to for me?
Robert Munro
02/21/2025, 6:55 PM
i think it must have been some problem with
io.coil-kt.coil3:coil-network-ktor3
which i was using for images.
when i added
io.ktor;ktor-client-cio
everything seems to work
m
Michael Paus
02/21/2025, 8:40 PM
It does create a DMG if you have configured that in your Gradle file, e.g.: