← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcpp-plugin-sdk-c/trunk] Rev 22: installing happens at run time

 

------------------------------------------------------------
revno: 22
committer: poy <poy@xxxxxxxxxx>
branch nick: dcpp-plugin-sdk-c
timestamp: Sun 2013-06-02 13:32:51 +0200
message:
  installing happens at run time
added:
  packaging/README.txt
modified:
  .bzrignore
  src/Plugin.c


--
lp:dcpp-plugin-sdk-c
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-c/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcpp-plugin-sdk-c.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-c/trunk/+edit-subscription
=== modified file '.bzrignore'
--- .bzrignore	2013-05-23 16:17:12 +0000
+++ .bzrignore	2013-06-02 11:32:51 +0000
@@ -12,8 +12,7 @@
 ./doc/build.bat
 ./doc/html
 ./doc/latex
-./packaging/*
-!./packaging/packager
+./packaging/info_generated.xml
 ./projects/make/build*
 ./projects/vs2010/Debug
 ./projects/vs2010/ipch

=== added file 'packaging/README.txt'
--- packaging/README.txt	1970-01-01 00:00:00 +0000
+++ packaging/README.txt	2013-06-02 11:32:51 +0000
@@ -0,0 +1,25 @@
+This directory helps package a plugin into a .dcext file. The "Plugin format (dcext).txt" file in
+the "doc" directory contains more information about the process.
+
+The "packager" directory contains a helper script that generates an info.xml template to be used as
+a base for the final info.xml which will be included in the .dcext archive.
+
+Building the project should create an info_generated.xml file in this directory. Here follows the
+comment block it will contain.
+
+---
+
+This file is an example info.xml to be included in the dcext package. For more
+information, read "Plugin format (dcext).txt" in the "doc" directory.
+
+This file has been generated using the information filled in the src/version.h file.
+
+Edit the <Plugin> tags to include your plugin files.
+If you support Windows, include pe-x64 and pe-x86 platforms.
+If you support Linux, include elf-x64 and elf-x86 platforms.
+
+The <Files> tag is empty; should you want to distribute additional files, include them
+in there within <File> tags (again, more information in the above doc file).
+
+When you are done editing this file, rename it to "info.xml", move the relevant files
+to this directory and zip them; rename that .zip to .dcext and you are done!

=== modified file 'src/Plugin.c'
--- src/Plugin.c	2013-05-30 19:00:14 +0000
+++ src/Plugin.c	2013-06-02 11:32:51 +0000
@@ -52,7 +52,7 @@
 	case ON_LOAD:
 	case ON_LOAD_RUNTIME:
 		{
-			return onLoad(core, state == ON_INSTALL, state == ON_LOAD_RUNTIME);
+			return onLoad(core, state == ON_INSTALL, state == ON_INSTALL || state == ON_LOAD_RUNTIME);
 		}
 
 	case ON_UNINSTALL: