\r
# The build results are copied to a staging area, where the packager expects to find them.\r
# We put the staging area in the fixed area .../pismere/staging.\r
- my $prepackage = $config->{Stages}->{PrePackage};\r
- my $staging_area = "$wd\\staging";\r
+ my $prepackage = $config->{Stages}->{PrePackage};\r
+ my $staging = "$wd\\staging";\r
chdir($wd) or die "Fatal -- couldn't chdir to $wd\n";\r
if ($verbose) {print "Info -- chdir to $wd\n";}\r
- (-e $staging_area) or mkdir($staging_area);\r
+ (-e $staging) or mkdir($staging);\r
\r
# Force Where From and To are relative to:\r
$prepackage->{CopyList}->{Config}->{From}->{root} = "$wd\\athena";\r
$prepackage->{CopyList}->{Config}->{To}->{root} = "$wd\\staging";\r
copyFiles($prepackage->{CopyList}, $config); ## Copy any files [this step takes a while]\r
\r
- chdir("staging\\install\\wix") or die "Fatal -- Couldn't cd to $wd\\staging\\install\\wix";\r
+ # Sign files:\r
+ chdir($staging) or die "Fatal -- couldn't chdir to $staging\n";\r
+ print "Info -- chdir to ".`cd`."\n" if ($verbose);\r
+ if ($switches[0]->{sign}->{value}) {\r
+ signFiles($config->{Stages}->{PostPackage}->{Config}->{Signing}, $config);\r
+ }\r
+ \r
+ chdir("$staging\\install\\wix") or die "Fatal -- Couldn't cd to $staging\\install\\wix";\r
# Correct errors in files.wxi:\r
!system("sed 's/WorkingDirectory=\"\\[dirbin\\]\"/WorkingDirectory=\"dirbin\"/g' files.wxi > a.tmp") or die "Fatal -- Couldn't modify files.wxi.";\r
!system("mv a.tmp files.wxi") or die "Fatal -- Couldn't update files.wxi.";\r