https://kotlinlang.org logo
Title
c

Clament John

06/19/2021, 6:46 AM
Is there a way to update a Kotlin Compose for desktop application? Or is there a way to update a swing application? Like how electron.js can update an app using update.electronjs.org
c

CLOVIS

06/19/2021, 7:39 AM
As far as I know (which is really not much), you have to use the system's update tool.
c

Clament John

06/19/2021, 7:45 AM
@CLOVIS Can you please link a doc to what you mean by system update tools? I'm new to Kotlin (only worked on Android) and never been a Java dev. So a bit lost
c

CLOVIS

06/19/2021, 7:52 AM
I mean, if you make an Android app, let the Play Store do the updates. If you make a Linux app, let the package manager do the updates (Compose for Desktop creates a .deb). If you make a MacOS app, let the MacOS store do the updates. Etc. Essentially, just integrate with the way the system currently works, and don't bother with it too much
c

Clament John

06/19/2021, 8:02 AM
Ok. Question • Will installing a new .exe or .dep file replace the existing one (and it's depending files - jars)?
c

CLOVIS

06/19/2021, 8:34 AM
Sorry, I don't know anything about Windows. Hopefully someone else can answer.
Compose for Desktop uses jpackage, so maybe if you search for that question with jpackage you'll get better answers.
👍 2
t

theapache64

06/19/2021, 4:15 PM
Will installing a new .exe or .dep file replace the existing one (and it's depending files - jars)?
@Clament John Yes. It'll update.
c

Clament John

06/19/2021, 4:17 PM
Thank you @theapache64
👍 1