Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69d6599

Browse files
committedFeb 18, 2024·
Add App Sandbox support.
1 parent 3d70c75 commit 69d6599

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎Squirrel.entitlements

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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.temporary-exception.files.home-relative-path.read-write</key>
6+
<array>
7+
<string>/Library/Rime/</string>
8+
</array>
9+
<key>com.apple.security.temporary-exception.mach-register.global-name</key>
10+
<string>Squirrel_1_Connection</string>
11+
<key>com.apple.security.files.bookmarks.app-scope</key>
12+
<true/>
13+
<key>com.apple.security.app-sandbox</key>
14+
<true/>
15+
<key>com.apple.security.files.user-selected.read-write</key>
16+
<true/>
17+
<key>com.apple.security.network.client</key>
18+
<true/>
19+
</dict>
20+
</plist>

‎Squirrel.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
44F84AD614E94C490005D70B /* SquirrelPanel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SquirrelPanel.m; sourceTree = "<group>"; };
233233
44FA4D891685997300116C1F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
234234
44FA4D8E16859B2900116C1F /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/Localizable.strings"; sourceTree = "<group>"; };
235+
5BCE17192B81D03D008C8D9E /* Squirrel.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Squirrel.entitlements; sourceTree = "<group>"; };
235236
77AA67DC2588916300A592E2 /* HKVariants.ocd2 */ = {isa = PBXFileReference; lastKnownFileType = file; path = HKVariants.ocd2; sourceTree = "<group>"; };
236237
77AA67DD2588916300A592E2 /* t2s.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = t2s.json; sourceTree = "<group>"; };
237238
77AA67DE2588916300A592E2 /* t2tw.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = t2tw.json; sourceTree = "<group>"; };
@@ -348,6 +349,7 @@
348349
29B97314FDCFA39411CA2CEA /* Squirrel */ = {
349350
isa = PBXGroup;
350351
children = (
352+
5BCE17192B81D03D008C8D9E /* Squirrel.entitlements */,
351353
442C648F1F7A40180027EFBE /* bin */,
352354
44DA7A4214DD598900C1ED3B /* SharedSupport */,
353355
080E96DDFE201D6D7F000001 /* Sources */,
@@ -602,6 +604,7 @@
602604
buildSettings = {
603605
CLANG_CXX_LIBRARY = "libc++";
604606
CLANG_ENABLE_OBJC_ARC = YES;
607+
CODE_SIGN_ENTITLEMENTS = Squirrel.entitlements;
605608
CODE_SIGN_IDENTITY = "-";
606609
COMBINE_HIDPI_IMAGES = YES;
607610
COPY_PHASE_STRIP = NO;
@@ -652,6 +655,7 @@
652655
buildSettings = {
653656
CLANG_CXX_LIBRARY = "libc++";
654657
CLANG_ENABLE_OBJC_ARC = YES;
658+
CODE_SIGN_ENTITLEMENTS = Squirrel.entitlements;
655659
CODE_SIGN_IDENTITY = "-";
656660
COMBINE_HIDPI_IMAGES = YES;
657661
CURRENT_PROJECT_VERSION = 0.17.2;

0 commit comments

Comments
 (0)
Please sign in to comment.