From c63a6afb0b950d30e5cc7948154622030fc8a35c Mon Sep 17 00:00:00 2001 From: "curt%netscape.com" Date: Fri, 25 Jan 2002 05:27:06 +0000 Subject: [PATCH] Wraps the stub installer into a xpi. git-svn-id: svn://10.0.0.236/trunk@112834 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpinstall/packager/windows/makeall.pl | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/mozilla/xpinstall/packager/windows/makeall.pl b/mozilla/xpinstall/packager/windows/makeall.pl index ad6eefb1c62..6c2f4cdd97e 100644 --- a/mozilla/xpinstall/packager/windows/makeall.pl +++ b/mozilla/xpinstall/packager/windows/makeall.pl @@ -86,7 +86,8 @@ if($inRedirIniURL eq "") $seiFileNameGeneric = "nsinstall.exe"; $seiFileNameSpecific = "mozilla-win32-installer.exe"; -$seiFileNameSpecificStub = "mozilla-win32-stub-installer.exe"; +$seiStubRootName = "mozilla-win32-stub-installer"; +$seiFileNameSpecificStub = "$seiStubRootName.exe"; $seuFileNameSpecific = "MozillaUninstall.exe"; $seuzFileNameSpecific = "mozillauninstall.zip"; @@ -251,6 +252,38 @@ if(system("copy $inDistPath\\$seiFileNameSpecificStub $inDistPath\\stub")) die "\n Error: copy $inDistPath\\$seiFileNameSpecificStub $inDistPath\\stub\n"; } +# create the xpi for launching the stub installer +print "\n**********************************\n"; +print "* *\n"; +print "* creating stub installer xpi... *\n"; +print "* *\n"; +print "************************************\n"; +if(-d "$inStagePath\\$seiStubRootName") +{ + unlink <$inStagePath\\$seiStubRootName\\*>; +} +else +{ + mkdir ("$inStagePath\\$seiStubRootName",0775); +} +if(system("copy $inDistPath\\stub\\$seiFileNameSpecificStub $gLocalTmpStage\\$seiStubRootName")) +{ + die "\n Error: copy $inDistPath\\stub\\$seiFileNameSpecificStub $gLocalTmpStage\\$seiStubRootName\n"; +} + +# Make .js files +if(MakeJsFile($seiStubRootName)) +{ + return(1); +} + +# Make .xpi file +if(system("perl makexpi.pl $seiStubRootName $gLocalTmpStage $inDistPath\\xpi")) +{ + print "\n Error: perl makexpi.pl $seiStubRootName $gLocalTmpStage $inDistPath\\xpi\n"; + return(1); +} + # group files for CD print "\n************************************\n"; print "* *\n";