Author: ajorg
Date: 2007-10-09 10:43:05 -0400 (Tue, 09 Oct 2007)
New Revision: 87167

Added:
   trunk/moon/plugin/install.js
Modified:
   trunk/moon/plugin/
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/Makefile.am
Log:
2007-10-09  Andrew Jorgensen  <[EMAIL PROTECTED]>

        * Makefile.am: Build the firefox xpi plugin installer (unsigned)
        * install.js: First draft install script for xpi



Property changes on: trunk/moon/plugin
___________________________________________________________________
Name: svn:ignore
   - Makefile.in
*.exe
*.exe.mdb
Makefile
.libs
.deps
.project
.cproject

   + Makefile.in
*.exe
*.exe.mdb
Makefile
.libs
.deps
.project
.cproject
*.xpi


Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-10-09 14:41:26 UTC (rev 87166)
+++ trunk/moon/plugin/ChangeLog 2007-10-09 14:43:05 UTC (rev 87167)
@@ -1,3 +1,8 @@
+2007-10-09  Andrew Jorgensen  <[EMAIL PROTECTED]>
+
+       * Makefile.am: Build the firefox xpi plugin installer (unsigned)
+       * install.js: First draft install script for xpi
+
 2007-10-09  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * TODO: Update, fullScreen is now implemented.

Modified: trunk/moon/plugin/Makefile.am
===================================================================
--- trunk/moon/plugin/Makefile.am       2007-10-09 14:41:26 UTC (rev 87166)
+++ trunk/moon/plugin/Makefile.am       2007-10-09 14:43:05 UTC (rev 87167)
@@ -5,6 +5,8 @@
 
 pluginlib_DATA=README
 
+noinst_DATA = novell-moonlight.xpi
+
 if INCLUDE_MONO_RUNTIME
 pluginlib_DATA += moonlight.exe moonlight.exe.mdb
 endif
@@ -41,6 +43,11 @@
        plugin-class.h  \
        downloader.cpp
 
+novell_moonlight_xpi_CONTENTS = $(srcdir)/install.js .libs/libmoonloader.so 
.libs/libmoonplugin.so
+
+novell-moonlight.xpi: $(novell_moonlight_xpi_CONTENTS)
+       zip -j -9 $@ $(novell_moonlight_xpi_CONTENTS)
+
 # custom install rule
 test-plugin: libmoonloader.la libmoonplugin.la moonlight.exe
        mkdir -p ~/.mozilla/plugins
@@ -52,7 +59,7 @@
        -rm -rf ~/.mozilla/plugins/libmoonloader.so
        rm -rf ~/.mozilla/plugin/moonlight.exe
 
-EXTRA_DIST = moonlight.cs
+EXTRA_DIST = moonlight.cs install.js
 DISTCLEANFILES=moonlight.exe moonlight.exe.mdb
 
 moonlight_CS=  $(srcdir)/moonlight.cs

Added: trunk/moon/plugin/install.js
===================================================================
--- trunk/moon/plugin/install.js        2007-10-09 14:41:26 UTC (rev 87166)
+++ trunk/moon/plugin/install.js        2007-10-09 14:43:05 UTC (rev 87167)
@@ -0,0 +1,15 @@
+var NAME = "Novell Moonlight";
+var VERSION = "0.1";
+var PLID = "@novell.com/" + NAME + ",version=" + VERSION;
+var LOADER = "libmoonloader.so";
+var PLUGIN = "libmoonplugin.so";
+
+initInstall (NAME, PLID, VERSION);
+
+/* For some reason Mozilla can only tell us the global plugin directory,
+ * so we have to guess it from the user's profile. */
+var plugins = getFolder("Profile", "../../plugins");
+addFile (PLID, VERSION, LOADER, plugins, null);
+addFile (PLID, VERSION, PLUGIN, plugins, null);
+performInstall ();
+alert("Succesfully installed " + NAME + " " + VERSION);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to