Kavin Gupta

05/23/2022, 11:07 PM
Does anyone have any information on autoupdaters w/ CfD? I'm fairly new to the process, but I'm trying to add autoupdating functionality to my application, autodownloading new releases. Would I have to create a main JAR file that would replace the code, or something else...? It's a relatively small app so I think replacing everything may be fine


05/24/2022, 1:25 AM
i know mac app store had a hard-fast rule about not having any in-app update process. But who says we have to go with mac app store anyways 😅

Kavin Gupta

05/24/2022, 3:53 AM
haha yeah I'm going to go with a .dmg most likely. I still have to get it notarized as well, so that'll be fun


05/24/2022, 6:52 AM
You should be ok with autoupdaters for Java apps, assuming you don't publish on app stores (if you do you need a build with the autoupdater disabled)

David W

05/24/2022, 3:39 PM
I used update4j for mine, which required making a separate updater app (you can't use a java app to update itself as it has a file lock on its jars). But if I were doing it again, I'd look into jDeploy too to see if it's easier/viable.
👀 1

Kavin Gupta

05/26/2022, 4:00 AM
I tried jDeploy, but unless I'm doing something wrong, I simply can not get it to work


05/27/2022, 12:00 PM
Hey guys, my company has developed a tool that makes it very easy to create and deploy self-updating packages for CfD apps (amongst other things). It's in private beta now.
If you'd like an invite please Slack me.
There is a tutorial showing how to create and ship a self-updating natively packaged, and fully signed, CfD app so it should be easy to get started. Just a heads up tho - once fully launched publicly, the app will be free for open source apps but licensed for non-open source. Bear that in mind.