NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 77 78 79 80 81 … 93 Next »
A Plugin Setup program

 
  • 0 Vote(s) - 0 Average
A Plugin Setup program
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#1
2005-02-06, 03:45 AM
For the most part, the current method of distributing a plugin involves creating a zip file containing the directory structure relative to the gbpvr directory, and then having the user unzip into the gbpvr directory.

Not that this is an overly complex process, but I thought it might be nice if we had a more formalized way to allow the user to setup a plugin.

I created a console application that is named "setup.exe".  It reads from a manifest file (setup.xml) that contains a sequence of commands that are executed.  Because it's named "setup.exe", a user can run it right from Winzip, which will extract all files in the archive to a temporary directory first.

In the initial version, the only command recognized is "copy" (for copying a file in your distribution to a source destination).

Destination paths can contain directory tokens, so you can copy a file to the GBPVR directory ($INSTALLDIR), plugins directory ($PLUGINSDIR), and active skin directory ($ACTIVESKINDIR) without worrying about creating the directory structure in your zip.

Details and the source code can be found here:

http://www.bladerhq.com/pmwiki/pmwiki.ph...ingPlugins

For enhancements, I can see adding an action to insert information into config.xml.  I welcome anyone else to come up with additional actions.

I can also see a GUI front-end created to assist the developer in creating the manifest file, and maybe even creating the entire distribution zip file.
JasonF
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#2
2005-02-06, 03:46 AM
Oh, and if anyone wants to see how it works, I added the Setup functionality to the latest Solitaire distribution (1.6.1):

http://www.bladerhq.com/pmwiki/pmwiki.ph.../Solitaire
JasonF
darrin75
Offline

Senior Member

Posts: 558
Threads: 103
Joined: Nov 2004
#3
2005-02-06, 03:59 AM
How about making some sort of plugin builder..Example create your own videosplugin or picture plugin with ease. Without having to rewrite standard code over and over..
darrin75
Offline

Senior Member

Posts: 558
Threads: 103
Joined: Nov 2004
#4
2005-02-06, 04:05 AM
by the way this is awesome...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,783 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,325 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,438 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,880 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,755 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,053 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,941 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,965 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,229 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,417 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode