Magisk-Modules-Alt-Repo / chroot-distro

install linux distributions on android
GNU General Public License v3.0
129 stars 9 forks source link

Automatic updates #19

Open jjkola opened 3 months ago

jjkola commented 3 months ago

chroot-distro should support updateJson property for module.prop file and the associated update JSON file. This makes updating to a new version easier as there is no need for the user to download the updated version separately.

jjkola commented 3 months ago

There is three options how to proceed with this:

YasserNull commented 3 months ago

I didn't understand the idea automatic updates

jjkola commented 3 months ago

It is not automatic in the sense that it would update itself automatically but in the sense that package managers (for example mrepo) can read the update JSON file (with the help of updateJson property) to determine if there is a newer version available. I have been thinking about this and I think the best option would be to point outside of version control. This way it should be easy to point to the latest version regardless of the version used. This would also help version control as we don't need to keep release branches for ever and can prune old ones (tags can be used for returning to old version if needed, for example for bug checking).