Plugin Installer

Is there such a thing as a plugin installer ?

If so … I just never saw it …
If not … It would be great if this was something like a ZIP file.
With relative file specs that mirror the Vera File System.
With support for optional scripts:

[ul][li]pre-install.sh[/li]
[li]post-install.sh[/li][/ul]

Where pre-install.sh can check for dependencies. If it fails the install fails.
The resident installer would unpack the zip file.
Run the pre-install.sh if supplied.
Move the files to the destination area.
Run the post-install.sh if supplied.
Register the installation somewhere (I guess we would have to have a well know file i.e. PLUGIN-VERSION, with 1 line to describe the plugin and it’s version.)
UI Support to select an installer, and list currently installed plugins.

There’s enough overlap between your list and the OpenWrt opkg package format that I’d think of starting there.

(That said, there may be some conflict with MCV’s apps.mios.com “marketplace”. I doubt that apps.mios.com was designed with opkg compatibility in mind.)

Yep Looks good … I was not aware of the OpenWrt infrastructure. This is something MCV could implement in parallel with what they have today … and start migrating everything to it.

For that matter it’s something members on this forum could standardize on with
a well documented procedure on how to setup Vera to accept these plugin packages.

It would allow for typical Plugins with a simple package definition and complex plugins, with more demanding requirements to be easily managed and installed.
This could work for things on apps.mios.com if MCV want to move in that direction, as well as forum developed prototypes to be shared easily.

Is there a description of how things are packaged for apps.mios.com ?
Is this done by MCV folks ?

Yeah, probably won’t happen.

The apps.mios.com plugin editor is a Web page. You point and click to upload files. Personally I find it quite clunky, but it’s good for end users…

You can “simulate” a pre-install and post-install in the plugin’s startup function. First check if everything is OK; if it is, set a flag (e.g. PRE_INSTALL_OK) and if this flag is set, skip the checks next time. Then you can use os.execute to run a .sh script included in the plugin (this will be possible after the bug 2143 will be fixed).

Your missing the point … a single file that has everything in it and is supported as an install in a standard manner! … and can handle the simple things simply and the more complex things with more work, but is NOT limiting.

I’ve found the current implementation intimidating. I have yet to try out any plugins because of my perceived complexity of the task.

I, too, think it could be simplified.