summaryrefslogtreecommitdiffstats
path: root/bin/createpackage.pl
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-04-16 12:01:37 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-04-16 12:35:27 (GMT)
commit33aac2ca5b79afcb08c13c2b4092acfdb5056fdb (patch)
tree8010947125d071ef2783d03fb162d13587d43c43 /bin/createpackage.pl
parent0c92a94950a45474029c76f470e3db3cc0a4b9fc (diff)
downloadQt-33aac2ca5b79afcb08c13c2b4092acfdb5056fdb.zip
Qt-33aac2ca5b79afcb08c13c2b4092acfdb5056fdb.tar.gz
Qt-33aac2ca5b79afcb08c13c2b4092acfdb5056fdb.tar.bz2
Fixed automatic patching of self-signed packages
- Don't autopatch when just preprocessing pkg or creating stub package - Copy binaries before patching so that originals are preserved. - Only autopatch the preprocessed file so that original template is preserved. - Added clear warning to patch_capabilities.pl to notify users that patched package is not suitable for distribution. Task-number: QTBUG-9972 Reviewed-by: Shane Kearns
Diffstat (limited to 'bin/createpackage.pl')
-rwxr-xr-xbin/createpackage.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/createpackage.pl b/bin/createpackage.pl
index 554d619..23fe26d 100755
--- a/bin/createpackage.pl
+++ b/bin/createpackage.pl
@@ -101,6 +101,10 @@ Example with certfile:
If no certificate and key files are provided, either a RnD certificate or
a self-signed certificate from QtDir\\src\\s60installs directory is used.
+In the latter case the resulting package will also be automatically patched
+using patch_capabilities.pl script, which makes it unsuitable for distribution.
+Always specify certificates explicitly if you wish to distribute your package.
+
==============================================================================================
ENDUSAGESTRING
@@ -237,10 +241,6 @@ if (!$preservePkgOutput) {
}
# Preprocess PKG
-if ($certtext eq "Self Signed" && !@certificates) {
- print("Patching capabilities for self signed package $certificate\n");
- system ("patch_capabilities $templatepkg $targetplatform");
-}
local $/;
# read template file
@@ -277,6 +277,11 @@ if($stub) {
# Create stub SIS.
system ("makesis -s $pkgoutput $stub_sis_name");
} else {
+ if ($certtext eq "Self Signed" && !@certificates) {
+ print("Auto-patching capabilities for self signed package.\n");
+ system ("patch_capabilities $pkgoutput");
+ }
+
# Create SIS.
# The 'and' is because system uses 0 to indicate success.
system ("makesis $pkgoutput $unsigned_sis_name") and die ("makesis failed");