diff --git a/safari/project.patch b/safari/project.patch index f12cffd..5ec5a7f 100644 --- a/safari/project.patch +++ b/safari/project.patch @@ -1,26 +1,143 @@ --- a/build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj/project.pbxproj +++ b/build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj/project.pbxproj -@@ -825,7 +825,7 @@ - "@executable_path/../../../../Frameworks", +@@ -675,6 +675,7 @@ + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS (Extension)/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox Extension"; +@@ -690,7 +691,7 @@ + "-framework", + SafariServices, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox.Extension"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox.Extension"; + PRODUCT_NAME = "Fission - ChatBox Extension"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; +@@ -705,6 +706,7 @@ + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS (Extension)/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox Extension"; +@@ -720,7 +722,7 @@ + "-framework", + SafariServices, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox.Extension"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox.Extension"; + PRODUCT_NAME = "Fission - ChatBox Extension"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; +@@ -738,10 +740,12 @@ + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; +- CURRENT_PROJECT_VERSION = 1; ++ CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS (App)/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox"; ++ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; +@@ -752,14 +756,14 @@ + "$(inherited)", + "@executable_path/Frameworks", ); - MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 0.0.0; OTHER_LDFLAGS = ( "-framework", SafariServices, -@@ -878,6 +878,10 @@ - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; -+ ARCHS = ( -+ arm64, -+ x86_64, -+ ); + "-framework", + WebKit, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox"; + PRODUCT_NAME = "Fission - ChatBox"; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; +@@ -775,10 +779,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; +- CURRENT_PROJECT_VERSION = 1; ++ CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS (App)/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox"; ++ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; +@@ -789,14 +795,14 @@ + "$(inherited)", + "@executable_path/Frameworks", + ); +- MARKETING_VERSION = 1.0; ++ MARKETING_VERSION = 0.0.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + "-framework", + WebKit, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox"; + PRODUCT_NAME = "Fission - ChatBox"; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; +@@ -812,6 +818,7 @@ + CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Fission - ChatBox.entitlements"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "macOS (Extension)/Info.plist"; +@@ -828,7 +835,7 @@ + "-framework", + SafariServices, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox.Extension"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox.Extension"; + PRODUCT_NAME = "Fission - ChatBox Extension"; + SDKROOT = macosx; + SKIP_INSTALL = YES; +@@ -843,6 +850,7 @@ + CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/Fission - ChatBox.entitlements"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "macOS (Extension)/Info.plist"; +@@ -859,7 +867,7 @@ + "-framework", + SafariServices, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox.Extension"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox.Extension"; + PRODUCT_NAME = "Fission - ChatBox Extension"; + SDKROOT = macosx; + SKIP_INSTALL = YES; +@@ -876,11 +884,13 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "macOS (App)/Fission - ChatBox.entitlements"; -@@ -887,6 +891,7 @@ + CODE_SIGN_STYLE = Automatic; +- CURRENT_PROJECT_VERSION = 1; ++ CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "macOS (App)/Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox"; @@ -28,7 +145,7 @@ INFOPLIST_KEY_NSMainStoryboardFile = Main; INFOPLIST_KEY_NSPrincipalClass = NSApplication; LD_RUNPATH_SEARCH_PATHS = ( -@@ -894,7 +899,7 @@ +@@ -888,14 +898,14 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.14; @@ -37,3 +154,43 @@ OTHER_LDFLAGS = ( "-framework", SafariServices, + "-framework", + WebKit, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox"; + PRODUCT_NAME = "Fission - ChatBox"; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; +@@ -911,11 +921,13 @@ + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = "macOS (App)/Fission - ChatBox.entitlements"; + CODE_SIGN_STYLE = Automatic; +- CURRENT_PROJECT_VERSION = 1; ++ CURRENT_PROJECT_VERSION = 1; ++ DEVELOPMENT_TEAM = SMGV55KD3K; + ENABLE_HARDENED_RUNTIME = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "macOS (App)/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox"; ++ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + INFOPLIST_KEY_NSMainStoryboardFile = Main; + INFOPLIST_KEY_NSPrincipalClass = NSApplication; + LD_RUNPATH_SEARCH_PATHS = ( +@@ -923,14 +935,14 @@ + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 10.14; +- MARKETING_VERSION = 1.0; ++ MARKETING_VERSION = 0.0.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + "-framework", + WebKit, + ); +- PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.Fission---ChatBox"; ++ PRODUCT_BUNDLE_IDENTIFIER = "dev.josStorer.chatGPTBox"; + PRODUCT_NAME = "Fission - ChatBox"; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/safari/project.pre.patch b/safari/project.pre.patch index c21ee90..c7db30f 100644 --- a/safari/project.pre.patch +++ b/safari/project.pre.patch @@ -7,13 +7,12 @@ "description": "Integrating ChatGPT into your browser deeply, everything you need is here", "version": "0.0.0", "manifest_version": 2, -@@ -17,7 +17,8 @@ - "background": { +@@ -28,7 +28,7 @@ "scripts": [ "background.js" -- ] -+ ], + ], +- "persistent": true + "persistent": false }, "browser_action": { - "default_popup": "popup.html" + "default_popup": "popup.html?popup=true"