mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-27 17:47:56 +08:00
build: adjust to comply with apple's review policy
This commit is contained in:
@@ -44,11 +44,11 @@ jobs:
|
||||
with:
|
||||
node-version: 18
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
|
||||
- uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: 14.2
|
||||
- run: sed -i '' "s/0.0.0/${{ env.VERSION }}/g" safari/project.pre.patch
|
||||
- run: sed -i '' "s/0.0.0/${{ env.VERSION }}/g" safari/project.patch
|
||||
- run: npm run build:safari
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"title": "ChatGPTBox",
|
||||
"title": "Fission - ChatBox",
|
||||
"icon": "../src/logo.png",
|
||||
"contents": [
|
||||
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
|
||||
{ "x": 192, "y": 344, "type": "file", "path": "../build/chatGPTBox.app" }
|
||||
{ "x": 192, "y": 344, "type": "file", "path": "../build/Fission - ChatBox.app" }
|
||||
]
|
||||
}
|
||||
|
||||
+6
-4
@@ -1,10 +1,12 @@
|
||||
git apply safari/project.pre.patch
|
||||
npm run build
|
||||
xcrun safari-web-extension-converter ./build/firefox \
|
||||
--project-location ./build/safari --app-name chatGPTBox \
|
||||
--project-location ./build/safari --app-name "Fission - ChatBox" \
|
||||
--bundle-identifier dev.josStorer.chatGPTBox --force --no-prompt --no-open
|
||||
git apply safari/project.patch
|
||||
xcodebuild archive -project ./build/safari/chatGPTBox/chatGPTBox.xcodeproj \
|
||||
-scheme "chatGPTBox (macOS)" -configuration Release -archivePath ./build/safari/chatGPTBox.xcarchive
|
||||
xcodebuild -exportArchive -archivePath ./build/safari/chatGPTBox.xcarchive \
|
||||
xcodebuild archive -project "./build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj" \
|
||||
-scheme "Fission - ChatBox (macOS)" -configuration Release -archivePath "./build/safari/Fission - ChatBox.xcarchive"
|
||||
xcodebuild -exportArchive -archivePath "./build/safari/Fission - ChatBox.xcarchive" \
|
||||
-exportOptionsPlist ./safari/export-options.plist -exportPath ./build
|
||||
npm install -D appdmg
|
||||
rm ./build/safari.dmg
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- a/build/safari/chatGPTBox/chatGPTBox.xcodeproj/project.pbxproj
|
||||
+++ b/build/safari/chatGPTBox/chatGPTBox.xcodeproj/project.pbxproj
|
||||
--- 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",
|
||||
);
|
||||
@@ -19,11 +19,11 @@
|
||||
+ );
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
CODE_SIGN_ENTITLEMENTS = "macOS (App)/chatGPTBox.entitlements";
|
||||
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Fission - ChatBox.entitlements";
|
||||
@@ -887,6 +891,7 @@
|
||||
GENERATE_INFOPLIST_FILE = YES;
|
||||
INFOPLIST_FILE = "macOS (App)/Info.plist";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = "chatGPTBox";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox";
|
||||
+ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
|
||||
INFOPLIST_KEY_NSMainStoryboardFile = Main;
|
||||
INFOPLIST_KEY_NSPrincipalClass = NSApplication;
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
--- a/src/manifest.v2.json
|
||||
+++ b/src/manifest.v2.json
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
- "name": "ChatGPTBox",
|
||||
+ "name": "Fission - ChatBox",
|
||||
"description": "Integrating ChatGPT into your browser deeply, everything you need is here",
|
||||
"version": "0.0.0",
|
||||
"manifest_version": 2,
|
||||
@@ -17,7 +17,8 @@
|
||||
"background": {
|
||||
"scripts": [
|
||||
"background.js"
|
||||
- ]
|
||||
+ ],
|
||||
+ "persistent": false
|
||||
},
|
||||
"browser_action": {
|
||||
"default_popup": "popup.html"
|
||||
Reference in New Issue
Block a user