Tonido sofware updates, how exactly is that done?

Questions related to developing on the Tonido Platform
User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Tonido sofware updates, how exactly is that done?

Postby madhan » Sun Nov 14, 2010 10:05 am

The plugin is packaged into a format suitable for updates by first making a manifest.xml that contains a list of all the files in the plugin and then gzipping the files. They are then placed in a special folder so that they are available for install.

Once user installs it, the files get downloaded to a folder inside the "plugins" folder and get activated.

Later, when there is a new update, Tonido disables the plugin and downloads each file and saves into the same folder (replacing existing files of the same name). Note old files are not disturbed nor is any other files in the folder. So any stuff in there is left alone by the update.

Having said that, current update mechanism works well for few files (C++ has a single dll), but might be inefficient for PHP apps with thousands of files. We might need to make it work better.

Return to “Tonido Platform Development”

Who is online

Users browsing this forum: No registered users and 0 guests