[Zope-CVS] CVS: Packages/Moztop - install.js:1.2
Paul Everitt
paul@zope.com
Wed, 12 Feb 2003 03:43:06 -0500
Update of /cvs-repository/Packages/Moztop
In directory cvs.zope.org:/tmp/cvs-serv4806
Modified Files:
install.js
Log Message:
New JAR approach to installs, so the OS X builds don't crash.
=== Packages/Moztop/install.js 1.1.1.1 => 1.2 ===
--- Packages/Moztop/install.js:1.1.1.1 Sun Jan 12 17:30:15 2003
+++ Packages/Moztop/install.js Wed Feb 12 03:43:05 2003
@@ -1,15 +1,24 @@
-initInstall("MoZTop (XUL-based Zope 3 IDE)","/Zope3Team/Moztop","0.0.1");
+uninstall("Moztop");
+initInstall("Moztop","/Zope3Team/Moztop","0.4");
-moztopDir = getFolder("Chrome", "moztop");
-setPackageFolder(moztopDir);
+var fldr = getFolder("Chrome");
+setPackageFolder(fldr);
-addDirectory("moztop");
+addFile("moztop.jar");
-registerChrome(Install.CONTENT | Install.DELAYED_CHROME,
- getFolder(moztopDir, "content"));
-registerChrome(Install.SKIN | Install.DELAYED_CHROME,
- getFolder(moztopDir, "skin"));
-registerChrome(Install.LOCALE | Install.DELAYED_CHROME,
- getFolder(moztopDir, "locale"));
+var regfldr;
+regfldr = getFolder(fldr,'moztop.jar');
+registerChrome(Install.CONTENT | DELAYED_CHROME, regfldr,"content");
+registerChrome(Install.LOCALE | DELAYED_CHROME, regfldr,"locale");
+registerChrome(Install.SKIN | DELAYED_CHROME, regfldr,"skin");
-performInstall();
+var err=getLastError();
+
+if (err == SUCCESS){
+ logComment('Installing Moztop.');
+ performInstall();
+ refreshPlugins();
+} else {
+ logComment('Error installing Moztop: ' + err);
+ cancelInstall();
+}