Sign application outside of Xcode, since passing the deep option there doesn't seem to sign everything in the app bundle

CQTexperiment
Chris Moeller 2014-02-03 21:24:59 -08:00
parent cafc0182f8
commit 74689e0ff1
2 changed files with 3 additions and 4 deletions

View File

@ -2618,13 +2618,11 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "Developer ID Application";
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
OTHER_CODE_SIGN_FLAGS = "--deep";
PREBINDING = NO;
SDKROOT = macosx;
};
@ -2633,12 +2631,10 @@
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "Developer ID Application";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
OTHER_CODE_SIGN_FLAGS = "--deep";
PREBINDING = NO;
SDKROOT = macosx;
};

View File

@ -65,6 +65,9 @@ end
filename = "Cog-#{revision_code}.tbz"
#Sign it!
%x[codesign -s 'Developer ID Application' --deep --force '#{app_path}/Cog.app']
#Zip the app!
%x[rm -f /tmp/#{feed}.tar.bz2]
%x[tar -C '#{app_path}' -cjf /tmp/#{feed}.tar.bz2 Cog.app]