While I am at it, create the zip file.

This commit is contained in:
Steve Checkoway
2006-05-17 10:42:37 +00:00
parent 2754fd0f18
commit fc3de67cbe
+10 -1
View File
@@ -70,6 +70,7 @@ $destname =~ s/\s+/-/g;
my $destdir = tempdir;
my $smdir = "$destdir/$id";
my $pkg = "$root/$destname.pkg";
my $zip = "$root/$destname.zip";
for( @filelist )
{
@@ -165,8 +166,16 @@ if( -e $pkg )
}
my $pm =
'/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker';
system $pm, '-build', '-p', "$pkg", '-f', $destdir, '-ds',
system $pm, '-build', '-p', $pkg, '-f', $destdir, '-ds',
'-i', $infoname, '-d', $descname;
unlink $infoname, $descname;
rmtree $destdir;
print "Created $destname.pkg.\n";
if( -e $zip )
{
print "Removing $zip\n";
unlink $zip;
}
chdir $root;
system '/usr/bin/zip', '-9Tqyr', $zip, "$destname.pkg";
print "Created $destname.zip.\n";