Wraps the stub installer into a xpi.

git-svn-id: svn://10.0.0.236/trunk@112834 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
curt%netscape.com 2002-01-25 05:27:06 +00:00
parent a823967547
commit c63a6afb0b

View File

@ -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";