Welcome Guest, Not a member yet? Register   Sign In
Creating a self updater
#3

You would need to do a few different steps:

1. Occassionally ping your server/GitHub/whatever to get the latest version. If that's different than the current app's version then notify the user.
3. Create a UI to allow the user to update.
2. Download and install the updates when the user selects the update. This is the tricky portion. If I recall from the WordPress updater I looked at a few years ago, the most server-agnostic version is simply using FTP from the app to grab the files, pull them down the the current server, unzip, and move the files into place.

That works fine for standard hosting platforms, but not great for things that use images, like Kubernets, etc, since the file writes aren't permanent. The user would probably have a different flow at that time, anyway, where they'd do the updates locally, then commit those changes to a repo, which would then get deployed, so probably not a big deal, but something you would need to note in any docs for the project.
Reply


Messages In This Thread
Creating a self updater - by jetspeed - 01-07-2024, 02:24 AM
RE: Creating a self updater - by InsiteFX - 01-07-2024, 10:32 PM
RE: Creating a self updater - by kilishan - 01-08-2024, 08:14 AM
RE: Creating a self updater - by jetspeed - 01-08-2024, 10:43 PM
RE: Creating a self updater - by jetspeed - 02-05-2024, 09:32 AM
RE: Creating a self updater - by JustJohnQ - 02-05-2024, 11:49 AM
RE: Creating a self updater - by jetspeed - 02-06-2024, 10:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB