Skip to content

Commit

Permalink
fix: also codesign debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent dcff55a commit a5f9911
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/base.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ MACOSX_DEPLOYMENT_TARGET = 10.12
SWIFT_VERSION = 4.2
INFOPLIST_FILE = Info.plist
CODE_SIGN_ENTITLEMENTS = alt_tab_macos.entitlements
ENABLE_HARDENED_RUNTIME = YES // for notarization
IDEDerivedDataPathOverride = DerivedData
FRAMEWORK_SEARCH_PATHS = $(inherited) /System/Library/PrivateFrameworks // for SkyLight.framework
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks // for accessing swift dylibs at runtime
ENABLE_HARDENED_RUNTIME = YES // for notarization
OTHER_CODE_SIGN_FLAGS = --timestamp --deep --options runtime // for notarization
1 change: 0 additions & 1 deletion config/release.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
#include "base.xcconfig"

CODE_SIGN_IDENTITY = Developer ID Application: Louis Pontoise (QXD7GW8FHY)
OTHER_CODE_SIGN_FLAGS = --timestamp --deep --options runtime // for notarization
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO // for notarization
COCOAPODS_PARALLEL_CODE_SIGN = YES // codesign pods faster
4 changes: 1 addition & 3 deletions scripts/codesign_sparkle_embedded_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ set -exu
# codesign --deep is only 1 level deep. It misses Sparkle embedded app AutoUpdate
# this build phase script works around the issue

if [[ "$CONFIGURATION" == "Release" ]]; then
codesign --verbose --force --sign "$CODE_SIGN_IDENTITY" $OTHER_CODE_SIGN_FLAGS "${PODS_ROOT}/Sparkle/Sparkle.framework/Resources/Autoupdate.app"
fi
codesign --verbose --force --sign "$CODE_SIGN_IDENTITY" $OTHER_CODE_SIGN_FLAGS "${PODS_ROOT}/Sparkle/Sparkle.framework/Resources/Autoupdate.app"

0 comments on commit a5f9911

Please sign in to comment.