From fc3de67cbe71ea864160ca9cdad9da0dc109a5fc Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 17 May 2006 10:42:37 +0000 Subject: [PATCH] While I am at it, create the zip file. --- stepmania/PBProject/scripts/mkrelease.pl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stepmania/PBProject/scripts/mkrelease.pl b/stepmania/PBProject/scripts/mkrelease.pl index 8bf421b9fa..d9e53852ec 100755 --- a/stepmania/PBProject/scripts/mkrelease.pl +++ b/stepmania/PBProject/scripts/mkrelease.pl @@ -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";