From 403c7daf4793622908859877c62e2f30903ff201 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Thu, 7 Dec 2023 16:33:05 +0800 Subject: [PATCH] perf: add Info-debug.plist for debug env --- Easydict.xcodeproj/project.pbxproj | 4 +- Easydict/App/Info-debug.plist | 68 ++++++++++++++++++++++++++++++ Easydict/App/Info.plist | 20 --------- 3 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 Easydict/App/Info-debug.plist diff --git a/Easydict.xcodeproj/project.pbxproj b/Easydict.xcodeproj/project.pbxproj index e5b8b4302..2eb138eeb 100644 --- a/Easydict.xcodeproj/project.pbxproj +++ b/Easydict.xcodeproj/project.pbxproj @@ -588,6 +588,7 @@ 03BFFC7029612E10004E033E /* NSString+EZConvenience.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSString+EZConvenience.m"; sourceTree = ""; }; 03CAB9532ADBF0FF00DA94A3 /* EZSystemUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EZSystemUtility.h; sourceTree = ""; }; 03CAB9542ADBF0FF00DA94A3 /* EZSystemUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EZSystemUtility.m; sourceTree = ""; }; + 03CC6C092B21B0DC0049ED29 /* Info-debug.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-debug.plist"; sourceTree = ""; }; 03CF88622B137F650030C199 /* Array+ChineseTextConversion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Array+ChineseTextConversion.swift"; sourceTree = ""; }; 03D0434C292886D200E7559E /* EZMiniQueryWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EZMiniQueryWindow.h; sourceTree = ""; }; 03D0434D292886D200E7559E /* EZMiniQueryWindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EZMiniQueryWindow.m; sourceTree = ""; }; @@ -973,6 +974,7 @@ 03B022E329231FA6001C7E63 /* PrefixHeader.pch */, 03B0221B29231FA6001C7E63 /* Easydict-Bridging-Header.h */, 03B022E429231FA6001C7E63 /* Info.plist */, + 03CC6C092B21B0DC0049ED29 /* Info-debug.plist */, ); path = App; sourceTree = ""; @@ -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)", diff --git a/Easydict/App/Info-debug.plist b/Easydict/App/Info-debug.plist new file mode 100644 index 000000000..d1e4ca6dc --- /dev/null +++ b/Easydict/App/Info-debug.plist @@ -0,0 +1,68 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Easydict-debug + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIcons + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(TARGET_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLIconFile + white-black-icon@2x + CFBundleURLName + com.izual.Easydict-debug + CFBundleURLSchemes + + easydictd + + + + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSApplicationCategoryType + public.app-category.utilities + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + LSUIElement + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + NSHumanReadableCopyright + Copyright © 2022 tisfeng. All rights reserved. + NSMainStoryboardFile + Main + NSPrincipalClass + NSApplication + NSSupportsAutomaticTermination + + NSSupportsSuddenTermination + + SUFeedURL + https://raw.githubusercontent.com/tisfeng/Easydict/main/appcast.xml + SUPublicEDKey + 9Ee1FtAsmJHFD79H4bToJhAOJmTtkTYIUDr23ofEWiU= + + diff --git a/Easydict/App/Info.plist b/Easydict/App/Info.plist index 0aad2333e..8cb85113c 100644 --- a/Easydict/App/Info.plist +++ b/Easydict/App/Info.plist @@ -36,18 +36,6 @@ easydict - - CFBundleTypeRole - Editor - CFBundleURLIconFile - white-black-icon@2x - CFBundleURLName - com.izual.Easydict-debug - CFBundleURLSchemes - - easydictd - - CFBundleVersion $(CURRENT_PROJECT_VERSION) @@ -61,8 +49,6 @@ NSAllowsArbitraryLoads - NSAllowsArbitraryLoadsInWebContent - NSHumanReadableCopyright Copyright © 2022 tisfeng. All rights reserved. @@ -78,11 +64,5 @@ https://raw.githubusercontent.com/tisfeng/Easydict/main/appcast.xml SUPublicEDKey 9Ee1FtAsmJHFD79H4bToJhAOJmTtkTYIUDr23ofEWiU= - NSAppTransportSecurity - - - NSAllowsArbitraryLoads - -