From b78aae3b1db4503a74092ee5930a9402cdcdcd3c Mon Sep 17 00:00:00 2001 From: nookery Date: Mon, 25 Dec 2023 14:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0=E5=88=B0Ap?= =?UTF-8?q?p=20Store=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Extension/Info.plist | 2 +- TravelMode.xcodeproj/project.pbxproj | 24 ++++++++++++++++++++---- TravelMode/Helpers/NEFilterFlowExt.swift | 6 ++++++ TravelMode/Info.plist | 6 +++++- 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 TravelMode/Helpers/NEFilterFlowExt.swift diff --git a/Extension/Info.plist b/Extension/Info.plist index 9f8a312..73e22e3 100644 --- a/Extension/Info.plist +++ b/Extension/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 11 + $(CURRENT_PROJECT_VERSION) LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSHumanReadableCopyright diff --git a/TravelMode.xcodeproj/project.pbxproj b/TravelMode.xcodeproj/project.pbxproj index f2c68f1..5c2f7ad 100644 --- a/TravelMode.xcodeproj/project.pbxproj +++ b/TravelMode.xcodeproj/project.pbxproj @@ -18,6 +18,7 @@ 0B3399382B39277B005CC627 /* EventList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B3399372B39277B005CC627 /* EventList.swift */; }; 0B33993A2B392B20005CC627 /* FilterStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B3399392B392B20005CC627 /* FilterStatus.swift */; }; 0B33993C2B39334E005CC627 /* FirewallAllowEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B33993B2B39334E005CC627 /* FirewallAllowEvent.swift */; }; + 0B408A2C2B395A77000E77DB /* NEFilterFlowExt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B408A2B2B395A77000E77DB /* NEFilterFlowExt.swift */; }; C40A5C46229DD6A500627D50 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C4B45DDD2273A3450050C59B /* NetworkExtension.framework */; }; C40A5C4B229DD6A500627D50 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = C40A5C4A229DD6A500627D50 /* main.swift */; }; C40A5C50229DD6A500627D50 /* com.yueyi.TravelMode.Extension.systemextension in Embed System Extensions */ = {isa = PBXBuildFile; fileRef = C40A5C45229DD6A500627D50 /* com.yueyi.TravelMode.Extension.systemextension */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; @@ -61,6 +62,7 @@ 0B3399372B39277B005CC627 /* EventList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventList.swift; sourceTree = ""; }; 0B3399392B392B20005CC627 /* FilterStatus.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterStatus.swift; sourceTree = ""; }; 0B33993B2B39334E005CC627 /* FirewallAllowEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirewallAllowEvent.swift; sourceTree = ""; }; + 0B408A2B2B395A77000E77DB /* NEFilterFlowExt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NEFilterFlowExt.swift; sourceTree = ""; }; 0B5B1CA72B385BF30002421E /* TravelModeApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TravelModeApp.swift; sourceTree = ""; }; 0B5B1CA92B385BF30002421E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 0B5B1CBF2B3865F90002421E /* Channel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Channel.swift; sourceTree = ""; }; @@ -137,6 +139,14 @@ path = View; sourceTree = ""; }; + 0B408A2A2B395A68000E77DB /* Helpers */ = { + isa = PBXGroup; + children = ( + 0B408A2B2B395A77000E77DB /* NEFilterFlowExt.swift */, + ); + path = Helpers; + sourceTree = ""; + }; 6ED613506ED6B88000000001 /* Configuration */ = { isa = PBXGroup; children = ( @@ -182,6 +192,7 @@ children = ( 0B3399312B39160B005CC627 /* Bootstrap */, 0B33992B2B3911D9005CC627 /* Event */, + 0B408A2A2B395A68000E77DB /* Helpers */, 0B3399342B3916B2005CC627 /* View */, 0B3399282B390D30005CC627 /* ViewModel */, C4B45DBC2273A0020050C59B /* Assets.xcassets */, @@ -312,6 +323,7 @@ files = ( 0B33993A2B392B20005CC627 /* FilterStatus.swift in Sources */, 0B33992D2B3911F1005CC627 /* FirewallEvent.swift in Sources */, + 0B408A2C2B395A77000E77DB /* NEFilterFlowExt.swift in Sources */, C4B1415C227BBC0200B26560 /* IPCConnection.swift in Sources */, 0B3399262B3907F6005CC627 /* ContentView.swift in Sources */, 0B3399252B3907F3005CC627 /* TravelModeApp.swift in Sources */, @@ -343,6 +355,7 @@ CODE_SIGN_ENTITLEMENTS = Extension/Signing.entitlements; CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 11; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = Y6HZ9JJYV6; ENABLE_HARDENED_RUNTIME = YES; @@ -352,6 +365,7 @@ "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 12.0; PRODUCT_BUNDLE_IDENTIFIER = com.yueyi.TravelMode.Extension; PRODUCT_NAME = "$(PRODUCT_BUNDLE_IDENTIFIER)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -367,6 +381,7 @@ CODE_SIGN_ENTITLEMENTS = Extension/Signing.entitlements; CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 11; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = Y6HZ9JJYV6; ENABLE_HARDENED_RUNTIME = YES; @@ -376,6 +391,7 @@ "@executable_path/../Frameworks", "@executable_path/../../../../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 12.0; PRODUCT_BUNDLE_IDENTIFIER = com.yueyi.TravelMode.Extension; PRODUCT_NAME = "$(PRODUCT_BUNDLE_IDENTIFIER)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -438,7 +454,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -496,7 +512,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; @@ -522,7 +538,7 @@ ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = TravelMode/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = TravelMode; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", @@ -553,7 +569,7 @@ ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = TravelMode/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = TravelMode; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", diff --git a/TravelMode/Helpers/NEFilterFlowExt.swift b/TravelMode/Helpers/NEFilterFlowExt.swift new file mode 100644 index 0000000..5ac357f --- /dev/null +++ b/TravelMode/Helpers/NEFilterFlowExt.swift @@ -0,0 +1,6 @@ +import Foundation +import NetworkExtension + +extension NEFilterFlow { + +} diff --git a/TravelMode/Info.plist b/TravelMode/Info.plist index 5b60dd0..0852455 100644 --- a/TravelMode/Info.plist +++ b/TravelMode/Info.plist @@ -2,6 +2,8 @@ + CFBundleExecutable + $(EXECUTABLE_NAME) CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleIdentifier @@ -15,7 +17,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 11 + $(CURRENT_PROJECT_VERSION) LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSMainStoryboardFile @@ -24,5 +26,7 @@ NSSupportsSuddenTermination + LSApplicationCategoryType + public.app-category.utilities