summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-07-30 11:36:18 +0300
committerTor Lillqvist <tml@iki.fi>2013-07-30 11:38:52 +0300
commit79d1d1b4405b9f76de10b9c2c5ecdca686b1f7b9 (patch)
tree02a42b83c2e4e2a4c5ae8f74ce478491188cba41 /solenv
parent636f90327f4452eca9bf16c84b6cff0239c222a0 (diff)
Use sandboxing when requested also for the app bundle in the dmg
Change-Id: I612be680e7aea2b098894aa4e11b10b471d34144
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/simplepackage.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm
index bf769f4d36d0..3a745ecc0e42 100644
--- a/solenv/bin/modules/installer/simplepackage.pm
+++ b/solenv/bin/modules/installer/simplepackage.pm
@@ -424,7 +424,10 @@ sub create_package
# participate in the signing and their validity can be
# guaranteed.
- $systemcall = "codesign --sign $ENV{'MACOSX_CODESIGNING_IDENTITY'} --force -v -v -v $localtempdir/$folder/$volume_name_classic_app.app";
+ $entitlements = '';
+ $entitlements = "--entitlements $ENV{'BUILDDIR'}/lo.xcent" if defined($ENV{'ENABLE_MACOSX_SANDBOX'});
+
+ $systemcall = "codesign --sign $ENV{'MACOSX_CODESIGNING_IDENTITY'} --force $entitlements -v -v -v $localtempdir/$folder/$volume_name_classic_app.app";
print "... $systemcall ...\n";
my $returnvalue = system($systemcall);
$infoline = "Systemcall: $systemcall\n";