summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2010-02-18 14:02:13 (GMT)
committeraxis <qt-info@nokia.com>2010-02-26 15:17:35 (GMT)
commit30efd4ba1b9b595f1184ff9fc3441bf4f5391206 (patch)
tree30b8ca68411953c1465d80736aea5d5d2875024f /bin
parent2850abde744ae8140cf7187ca80dea684f60f3fa (diff)
downloadQt-30efd4ba1b9b595f1184ff9fc3441bf4f5391206.zip
Qt-30efd4ba1b9b595f1184ff9fc3441bf4f5391206.tar.gz
Qt-30efd4ba1b9b595f1184ff9fc3441bf4f5391206.tar.bz2
Make createpackage.pl auto-patch the capabilites for self signed packages
This allows you to simply call 'make ok_sis' to have a sis package which is self signed with patched capabilities, ready for install on an consumer system. Reviewed-by: Shane Kearns (cherry picked from commit 1f9e501bf9f3287a424b36915d4436a74cf21847)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/createpackage.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/createpackage.pl b/bin/createpackage.pl
index 3a61bc0..c16c692 100755
--- a/bin/createpackage.pl
+++ b/bin/createpackage.pl
@@ -272,6 +272,10 @@ if($stub) {
# Create stub SIS.
system ("makesis -s $pkgoutput $stub_sis_name");
} else {
+ if ($certtext eq "Self Signed" && !@certificates) {
+ print("Patching capabilities for self signed package $certificate\n");
+ system ("patch_capabilities $templatepkg $targetplatform");
+ }
# Create SIS.
# The 'and' is because system uses 0 to indicate success.
system ("makesis $pkgoutput $unsigned_sis_name") and die ("makesis failed");