Hi , Im trying to build a MSI for a little KMP des...
# compose-desktop
r
Hi , Im trying to build a MSI for a little KMP desktop app - but the built MSI has no internet permission to download images. Wondering if someone can oint me in the right direction to add the appropriate config files for windows? seems like i have to add a window app manifest. and / or some wix config. But im not sure how to add the files to be inclued in the wix/jpackage build. mac and linux works fine - so seems config releated this is the
build.gradle.kts
as it stands at the moment: https://github.com/sentinelweb/house-shoreditch/blob/39010809277c992ee18f4fae3fc82c7d5b800944/composeApp/build.gradle.kts
p
are you sure that a permission and a manifest is necessary to download an image from internet in Desktop?
I know that is necessary on Android
r
seems like windows needs something extra mac and linux work ok but the same build on windows doesnt download the images. possibly is just firewall rules
m
My desktop app for windows downloads images all the time and I can’t remember having set any specific permissions. Is your MSI installer signed or otherwise special?
r
no its not signed - should be the same as for mac and linux (which work)
i dont use windows much possibly there is some user os setting to allows appp to use internet
m
Maybe some child protection stuff?
r
yes im not sure - when i just installed intellij there was a firewall popup to add the intellij app. But i also tried adding my app manually in firewall setting but it didnt help
So when i run
./gradlew packageReleaseMsi
locally on a win device all is ok. So it seem to be a problem building it with CI this is the action YML https://github.com/sentinelweb/house-shoreditch/blob/5e4a21122166cfecacfe9545063ce9677beeb4ad/.github/workflows/desktop_win.yml
m
I build my win app always on GitHub via an action because I am developing on a Mac. So far nobody has complained about not being able to load an image.
r
thanks, i don't guess you might have an action.yml to share? it must be build env related i think.
m
The action is no secret.
r
nice .. thanks for sharing ... that all looks similar to what i have 🤷‍♂️
m
You can do one more test. Install the Windows version of my software (it’s free) and see whether it works on your machine. https://mpmediasoft.de/products/AIPBrowserDE/help/AIPBrowserDE.html#_installation In order to test the image loading select
Aeronautical Information Publication/AD Aerodromes/A/Aachen-Merzbrueck 1
on the left for example. This page should then be loaded as an image and shown in the middle of the screen. If that works, then something is wrong with your app-packaging. If that doesn’t work, then something is wrong with your machine configuration because this software is known to work.
r
yes that a good idea - ill try later