Skip to content

Commit 41ebe47

Browse files
committed
build: adjust to comply with apple's review policy
1 parent 727ff2f commit 41ebe47

File tree

5 files changed

+32
-11
lines changed

5 files changed

+32
-11
lines changed

.github/workflows/tagged-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
with:
4545
node-version: 18
4646
- run: npm ci
47-
- run: npm run build
4847

4948
- uses: maxim-lobanov/setup-xcode@v1
5049
with:
5150
xcode-version: 14.2
51+
- run: sed -i '' "s/0.0.0/${{ env.VERSION }}/g" safari/project.pre.patch
5252
- run: sed -i '' "s/0.0.0/${{ env.VERSION }}/g" safari/project.patch
5353
- run: npm run build:safari
5454

safari/appdmg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"title": "ChatGPTBox",
2+
"title": "Fission - ChatBox",
33
"icon": "../src/logo.png",
44
"contents": [
55
{ "x": 448, "y": 344, "type": "link", "path": "/Applications" },
6-
{ "x": 192, "y": 344, "type": "file", "path": "../build/chatGPTBox.app" }
6+
{ "x": 192, "y": 344, "type": "file", "path": "../build/Fission - ChatBox.app" }
77
]
88
}

safari/build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
git apply safari/project.pre.patch
2+
npm run build
13
xcrun safari-web-extension-converter ./build/firefox \
2-
--project-location ./build/safari --app-name chatGPTBox \
4+
--project-location ./build/safari --app-name "Fission - ChatBox" \
35
--bundle-identifier dev.josStorer.chatGPTBox --force --no-prompt --no-open
46
git apply safari/project.patch
5-
xcodebuild archive -project ./build/safari/chatGPTBox/chatGPTBox.xcodeproj \
6-
-scheme "chatGPTBox (macOS)" -configuration Release -archivePath ./build/safari/chatGPTBox.xcarchive
7-
xcodebuild -exportArchive -archivePath ./build/safari/chatGPTBox.xcarchive \
7+
xcodebuild archive -project "./build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj" \
8+
-scheme "Fission - ChatBox (macOS)" -configuration Release -archivePath "./build/safari/Fission - ChatBox.xcarchive"
9+
xcodebuild -exportArchive -archivePath "./build/safari/Fission - ChatBox.xcarchive" \
810
-exportOptionsPlist ./safari/export-options.plist -exportPath ./build
911
npm install -D appdmg
1012
rm ./build/safari.dmg

safari/project.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- a/build/safari/chatGPTBox/chatGPTBox.xcodeproj/project.pbxproj
2-
+++ b/build/safari/chatGPTBox/chatGPTBox.xcodeproj/project.pbxproj
1+
--- a/build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj/project.pbxproj
2+
+++ b/build/safari/Fission - ChatBox/Fission - ChatBox.xcodeproj/project.pbxproj
33
@@ -825,7 +825,7 @@
44
"@executable_path/../../../../Frameworks",
55
);
@@ -19,11 +19,11 @@
1919
+ );
2020
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
2121
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
22-
CODE_SIGN_ENTITLEMENTS = "macOS (App)/chatGPTBox.entitlements";
22+
CODE_SIGN_ENTITLEMENTS = "macOS (App)/Fission - ChatBox.entitlements";
2323
@@ -887,6 +891,7 @@
2424
GENERATE_INFOPLIST_FILE = YES;
2525
INFOPLIST_FILE = "macOS (App)/Info.plist";
26-
INFOPLIST_KEY_CFBundleDisplayName = "chatGPTBox";
26+
INFOPLIST_KEY_CFBundleDisplayName = "Fission - ChatBox";
2727
+ INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
2828
INFOPLIST_KEY_NSMainStoryboardFile = Main;
2929
INFOPLIST_KEY_NSPrincipalClass = NSApplication;

safari/project.pre.patch

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- a/src/manifest.v2.json
2+
+++ b/src/manifest.v2.json
3+
@@ -1,5 +1,5 @@
4+
{
5+
- "name": "ChatGPTBox",
6+
+ "name": "Fission - ChatBox",
7+
"description": "Integrating ChatGPT into your browser deeply, everything you need is here",
8+
"version": "0.0.0",
9+
"manifest_version": 2,
10+
@@ -17,7 +17,8 @@
11+
"background": {
12+
"scripts": [
13+
"background.js"
14+
- ]
15+
+ ],
16+
+ "persistent": false
17+
},
18+
"browser_action": {
19+
"default_popup": "popup.html"

0 commit comments

Comments
 (0)