Log4Moz is now asynchronous, and that changed the API (a bit unnecessarily, if you ask me).
So, I started making this restarless and adding Android support, when CTP Manager (https://github.com/jvillalobos/CTP-Manager) became more time-critical. I made the code a bit more generic and easy to share among projects, so now I'm moving that code back to this project.
* Since I started using Services.jsm, I decided to apply it more uniformly and get it in other areas where it is useful. * Moved the about: page component to a module, which is loaded dynamically on mobile. * Made the generated installers more reliable. * Added small version of the add-on icon. * This all needs testing on Windows, Linux and Android.
Added zh-CN locale, from Babelzilla. Also, I had to add a more realistic maxVersion for SeaMonkey. This is release version 1.0.1.
Tested on the latest SM beta. It didn't take many changes to get this working. This is also a preparation for the 1.0 release, which should come out with this source and whatever locales are final at the moment. Changed README file to fancy rst format.
Updated locales to include the install.rdf description. This is the final version 0.9.2, and 1.0 for all practical purposes. I'll just wait for a few more translations (and maybe some testing) before I flip the 1.0 switch.
These locales were promptly submitted, and then I realized I forgot to include the description from install.rdf. Back to Babelzilla.
This now works for the main manager window and the import/export feature. In the end it was best not to have a separate preference to handle the migration. The add-on will have to run a query at startup for some time, but the whole code can be removed later on. Also fixed the Makefile to adjust for packed add-ons (whoops).
Local file permissions are a bit of an edge case. Up until now, I was inserting the entry directly into the DB, and this required restarting so no other changes were performed before. Now that there's a separate preference, this makes things much simpler all around. None of these changes have been tested. There's some major refactoring involved, so I wouldn't recommend using this version. Stable version coming soon.
Changed the UI in the generator to display the default texts (hardcoded) and provide more room to edit the longer messages. Fixed a bug in the installer generation that prevented anything to be edited individually, except for the title. Added trim calls to the installer inputs to prevent whitespace issues.
I'm a little surprised that it took so little work to get this going, but apparently it's working as expected. Awesome! Now it just needs some testing to make sure everything's OK and then we're good to go!
There's a content/templates soft link to the Installer project, to reuse the templates from there. Updated the compatibility info in install.rdf and updated Makefile to include the templates.
This code generates a Remote XUL installer that is restarless. On installation, it configures the remote XUL whitelist and then removes itself. It's easy to modify from the config.mk file. I haven't tested this heavily, it's just the basis for the code that will be included in the add-on.