Kaydet (Commit) ca514d35 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix OS X code signing

Use correct path to the app bundle.

Also update the comment about code signing to be more relevant for the
master branch.

Change-Id: I6a357e5cd033afc986fd035f9760c04763b06fc9
üst 4a41d3b3
...@@ -415,22 +415,27 @@ sub create_package ...@@ -415,22 +415,27 @@ sub create_package
if (($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') && if (($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') &&
defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" ) defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" )
{ {
# Just sign the .app as a whole, which means signing # Sign the .app as a whole, which means (re-)signing
# the CFBundleExecutable from Info.plist, # the CFBundleExecutable from Info.plist, i.e.
# i.e. soffice, plus the contents of the Resources # soffice, plus the contents of the Resources tree
# treee (which is not much, far from all of our # (which at the moment is not much, far from all of
# non-code "resources"). # our non-code "resources").
# Don't bother here in the 4.0 branch to sign each # Don't bother yet to sign each individual .dylib. (We
# individual .dylib, or each additional binary. See # do that for "make dev-install", but not here.)
# master for more work plus possibly eventually
# re-organising the app bundle structure to be more # The executables have already been signed by
# Mac-like (the "program" symlink, eek!) and actually # gb_LinkTarget__command_dynamiclink in
# putting all non-code resources (including extension # solenv/gbuild/platform/macosx.mk.
# scripts!) into Resources so that they participate
# in the signing and their validity can be guaranteed. # Eventually it would be a good idea to re-organise
# the app bundle structure to be more Mac-like and
$systemcall = "codesign --sign $ENV{'MACOSX_CODESIGNING_IDENTITY'} -v -v -v $tempdir/$packagename/$volume_name_classic_app.app"; # actually put all non-code resources (including
# extension scripts!) into Resources so that they
# 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";
print "... $systemcall ...\n"; print "... $systemcall ...\n";
my $returnvalue = system($systemcall); my $returnvalue = system($systemcall);
$infoline = "Systemcall: $systemcall\n"; $infoline = "Systemcall: $systemcall\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment