@minesadorada
I can't understand the lack of automation here.
If GetMem is unavailable, currently the update system fails. Am I right there?
No. You completely misunderstood the update system, but that's ok since nobody knew how it should work or what would be the optimal solution.
Why can't OPM regularly poll the http://<update_url>/<update_componentname>.json list automatically and look for version updates? This could even be in a background thread when OPM loads (as an user-chosen option) All that's needed is a standardised json filename for updates, and json packager provides that as a default.
A pull in every 6 sec is ok? Currently is 6000 ms.
Though I plan to extend a little bit, say 1 minute to minimize traffic load.
@lainz
Well he tested it and says that takes time (I've readed it somewhere here in this thread If I remember it well), so there is a kind of problem here, real one, or the library for downloading is not as fast, or something else is happening
True. I said that once, but the problem is now solved. I save the last update value, then from time to time OPM pull the json. For example after you update the external JSON, the user won't see the changes instantaneously, it will take 1-2 min(max). I believe this is more then ok. The pull is done in a background thread, so it won't interfere with the GUI.
The basics steps:
1. I add the package to the main repository. This step is not yet automatized, I have to do it manually. This is why you guys created that zip/json("Create repository package")
2. Once the package is added to the main repository you can generate the "external json", then change the version, link to external zip, etc..whenever, however you like
3. Send me the link to the external JSON, so I can add to the package again(see: screenshot). This has to be done only once.
4. After this step everything is automatic, the OPM from time to time(1 min or so) will check the external json, is something has changed, OPM notify the user, on request download the zip, install the new package.
Hope is clear now. I believe this is how @Juha, @lainz and others envisioned from the beginning or at least something similar.