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
if (($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') &&
defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" )
{
# Just sign the .app as a whole, which means signing
# the CFBundleExecutable from Info.plist,
# i.e. soffice, plus the contents of the Resources
# treee (which is not much, far from all of our
# non-code "resources").
# Don't bother here in the 4.0 branch to sign each
# individual .dylib, or each additional binary. See
# master for more work plus possibly eventually
# re-organising the app bundle structure to be more
# Mac-like (the "program" symlink, eek!) and actually
# putting 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'} -v -v -v $tempdir/$packagename/$volume_name_classic_app.app";
# Sign the .app as a whole, which means (re-)signing
# the CFBundleExecutable from Info.plist, i.e.
# soffice, plus the contents of the Resources tree
# (which at the moment is not much, far from all of
# our non-code "resources").
# Don't bother yet to sign each individual .dylib. (We
# do that for "make dev-install", but not here.)
# The executables have already been signed by
# gb_LinkTarget__command_dynamiclink in
# solenv/gbuild/platform/macosx.mk.
# Eventually it would be a good idea to re-organise
# the app bundle structure to be more Mac-like and
# 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";
my $returnvalue = system($systemcall);
$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