Skip to content

Commit 4458596

Browse files
Enable Hardened Runtime to prepare for Notarization (#646)
* Enable Hardened Runtime to prepare for Notarization * Disable hardened runtime for iOS * macOS SDK only?
1 parent 58183df commit 4458596

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

GitUp/Application/GitUp.entitlements

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.automation.apple-events</key>
6+
<true/>
7+
</dict>
8+
</plist>

GitUp/GitUp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
0AD4625A232711B000BE28D1 /* WelcomeWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WelcomeWindowController.m; sourceTree = "<group>"; };
142142
0AE7F5EE2312C1B000B06050 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
143143
165C32B51B95739700D2F894 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
144+
1D2DA2F923E9E99700691DEF /* GitUp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GitUp.entitlements; sourceTree = "<group>"; };
144145
31CD50E1203E2E2800360B3A /* ToolbarItemWrapperView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ToolbarItemWrapperView.h; sourceTree = "<group>"; };
145146
31CD50E2203E2E2800360B3A /* ToolbarItemWrapperView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ToolbarItemWrapperView.m; sourceTree = "<group>"; };
146147
3DB98C7D23E091650039B454 /* DEVELOPMENT_TEAM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DEVELOPMENT_TEAM.xcconfig; sourceTree = "<group>"; };
@@ -293,6 +294,7 @@
293294
E2C338AD19F8562F00063D95 /* Application */ = {
294295
isa = PBXGroup;
295296
children = (
297+
1D2DA2F923E9E99700691DEF /* GitUp.entitlements */,
296298
E2C338B019F8562F00063D95 /* AppDelegate.h */,
297299
E2C338B119F8562F00063D95 /* AppDelegate.m */,
298300
E25EBCEA1AA3F8B700D3AF44 /* Application.xcassets */,
@@ -654,6 +656,7 @@
654656
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
655657
BUNDLE_VERSION = 0;
656658
BUNDLE_VERSION_STRING = 1.1;
659+
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
657660
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
658661
INFOPLIST_FILE = Application/Info.plist;
659662
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
@@ -669,6 +672,7 @@
669672
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
670673
BUNDLE_VERSION = 0;
671674
BUNDLE_VERSION_STRING = 1.1;
675+
CODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;
672676
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
673677
INFOPLIST_FILE = Application/Info.plist;
674678
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";

Xcode-Configurations/Base.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
4747
GCC_WARN_UNUSED_FUNCTION = YES
4848
GCC_WARN_UNUSED_VARIABLE = YES
4949

50+
ENABLE_HARDENED_RUNTIME[sdk=macosx*] = YES
51+
5052
// GITUP_PLATFORM determines where to find header files and precompiled libs
5153
// required for build on case-sensitive systems, for ex. headers of libssh2 located in
5254
// "GitUpKit/Third-Party/libssh2/MacOSX/include" folder.

0 commit comments

Comments
 (0)