Skip to content

Commit

Permalink
Added preprocess only option for createpackage.bat
Browse files Browse the repository at this point in the history
The prerocessing is needed by installer scripts.

Reviewed-by: Miikka Heikkinen
  • Loading branch information
Janne Anttila committed Aug 28, 2009
1 parent 406f13e commit 8ef96fd
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions bin/createpackage.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ ()
print "Usage: createpackage.pl [-i] templatepkg target-platform [certificate key [passphrase]]\n";
print "\n";
print "Where parameters are as follows:\n";
print " [-i|install] = Install the package right away using PC suite\n";
print " templatepkg = Name of .pkg file template\n";
print " target = Either debug or release\n";
print " platform = One of the supported platform\n";
print " winscw | gcce | armv5 | armv6 | armv7\n";
print " certificate = The certificate file used for signing\n";
print " key = The certificate's private key file\n";
print " passphrase = The certificate's private key file's passphrase\n";
print " [-i|install] = Install the package right away using PC suite\n";
print " [-p|preprocess] = Only preprocess the template .pkg file.\n";
print " templatepkg = Name of .pkg file template\n";
print " target = Either debug or release\n";
print " platform = One of the supported platform\n";
print " winscw | gcce | armv5 | armv6 | armv7\n";
print " certificate = The certificate file used for signing\n";
print " key = The certificate's private key file\n";
print " passphrase = The certificate's private key file's passphrase\n";
print "\n";
print "For example:\n";
print " createpackage.pl fluidlauncher_template.pkg release-armv5\n";
Expand All @@ -44,7 +45,8 @@ ()

# Read given options
my $install = "";
unless (GetOptions('i|install' => \$install)){
my $preprocessonly = "";
unless (GetOptions('i|install' => \$install, 'p|preprocess' => \$preprocessonly)){
Usage();
}

Expand Down Expand Up @@ -136,6 +138,10 @@ ()
print OUTPUT $_;
close OUTPUT;

if ($preprocessonly) {
exit;
}

# Create and sign SIS
system ("makesis $pkgoutput $unsigned_sis_name");
system ("signsis $unsigned_sis_name $signed_sis_name $certificate $key $passphrase");
Expand Down

0 comments on commit 8ef96fd

Please sign in to comment.