Skip to content

Commit

Permalink
perf: add Info-debug.plist for debug env
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 7, 2023
1 parent 4e6fe03 commit 403c7da
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 21 deletions.
4 changes: 3 additions & 1 deletion Easydict.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@
03BFFC7029612E10004E033E /* NSString+EZConvenience.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+EZConvenience.m"; sourceTree = "<group>"; };
03CAB9532ADBF0FF00DA94A3 /* EZSystemUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EZSystemUtility.h; sourceTree = "<group>"; };
03CAB9542ADBF0FF00DA94A3 /* EZSystemUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EZSystemUtility.m; sourceTree = "<group>"; };
03CC6C092B21B0DC0049ED29 /* Info-debug.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-debug.plist"; sourceTree = "<group>"; };
03CF88622B137F650030C199 /* Array+ChineseTextConversion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Array+ChineseTextConversion.swift"; sourceTree = "<group>"; };
03D0434C292886D200E7559E /* EZMiniQueryWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EZMiniQueryWindow.h; sourceTree = "<group>"; };
03D0434D292886D200E7559E /* EZMiniQueryWindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EZMiniQueryWindow.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -973,6 +974,7 @@
03B022E329231FA6001C7E63 /* PrefixHeader.pch */,
03B0221B29231FA6001C7E63 /* Easydict-Bridging-Header.h */,
03B022E429231FA6001C7E63 /* Info.plist */,
03CC6C092B21B0DC0049ED29 /* Info-debug.plist */,
);
path = App;
sourceTree = "<group>";
Expand Down Expand Up @@ -2701,7 +2703,7 @@
ENABLE_TESTING_SEARCH_PATHS = NO;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_PREFIX_HEADER = "$(SRCROOT)/Easydict/App/PrefixHeader.pch";
INFOPLIST_FILE = "$(TARGET_NAME)/App/Info.plist";
INFOPLIST_FILE = "$(TARGET_NAME)/App/Info-debug.plist";
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
68 changes: 68 additions & 0 deletions Easydict/App/Info-debug.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Easydict-debug</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(TARGET_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLIconFile</key>
<string>white-black-icon@2x</string>
<key>CFBundleURLName</key>
<string>com.izual.Easydict-debug</string>
<key>CFBundleURLSchemes</key>
<array>
<string>easydictd</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2022 tisfeng. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticTermination</key>
<true/>
<key>NSSupportsSuddenTermination</key>
<true/>
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/tisfeng/Easydict/main/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>9Ee1FtAsmJHFD79H4bToJhAOJmTtkTYIUDr23ofEWiU=</string>
</dict>
</plist>
20 changes: 0 additions & 20 deletions Easydict/App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@
<string>easydict</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLIconFile</key>
<string>white-black-icon@2x</string>
<key>CFBundleURLName</key>
<string>com.izual.Easydict-debug</string>
<key>CFBundleURLSchemes</key>
<array>
<string>easydictd</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
Expand All @@ -61,8 +49,6 @@
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2022 tisfeng. All rights reserved.</string>
Expand All @@ -78,11 +64,5 @@
<string>https://raw.githubusercontent.com/tisfeng/Easydict/main/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>9Ee1FtAsmJHFD79H4bToJhAOJmTtkTYIUDr23ofEWiU=</string>
<key>NSAppTransportSecurity</key>
<dict>
<!--Allow HTTP Request (DANGER)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>

0 comments on commit 403c7da

Please sign in to comment.