Skip to content

Commit 299032a

Browse files
committed
Copy browser extension files for mac
Fixes #10308
1 parent 1ed081f commit 299032a

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.github/workflows/deployment-arm64.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
--module-path ${{env.JDK21}}/Contents/Home/jmods/:build/jlinkbase/jlinkjars \
110110
--add-modules org.jabref,org.jabref.merged.module \
111111
--dest build/distribution \
112+
--app-content buildres/mac/jabrefHost.py \
113+
--app-content buildres/mac/native-messaging-host \
112114
--name JabRef \
113115
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \
114116
--verbose \
@@ -131,6 +133,8 @@ jobs:
131133
--module-path ${{env.JDK21}}/Contents/Home/jmods/:build/jlinkbase/jlinkjars \
132134
--add-modules org.jabref,org.jabref.merged.module \
133135
--dest build/distribution \
136+
--app-content buildres/mac/jabrefHost.py \
137+
--app-content buildres/mac/native-messaging-host \
134138
--name JabRef \
135139
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \
136140
--verbose \

.github/workflows/deployment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ jobs:
168168
--module-path ${{env.JDK21}}/Contents/Home/jmods/:build/jlinkbase/jlinkjars \
169169
--add-modules org.jabref,org.jabref.merged.module \
170170
--dest build/distribution \
171+
--app-content buildres/mac/jabrefHost.py \
172+
--app-content buildres/mac/native-messaging-host \
171173
--name JabRef \
172174
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \
173175
--verbose \
@@ -191,6 +193,8 @@ jobs:
191193
--module-path ${{env.JDK21}}/Contents/Home/jmods/:build/jlinkbase/jlinkjars \
192194
--add-modules org.jabref,org.jabref.merged.module \
193195
--dest build/distribution \
196+
--app-content buildres/mac/jabrefHost.py \
197+
--app-content buildres/mac/native-messaging-host \
194198
--name JabRef \
195199
--app-version ${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }} \
196200
--verbose \

buildres/mac/native-messaging-host/chromium/org.jabref.jabref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "org.jabref.jabref",
33
"description": "JabRef",
4-
"path": "/Applications/JabRef.app/Contents/Resources/jabrefHost.py",
4+
"path": "/Applications/JabRef.app/Contents/jabrefHost.py",
55
"type": "stdio",
66
"allowed_origins": [
77
"chrome-extension://bifehkofibaamoeaopjglfkddgkijdlh/",
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"name": "org.jabref.jabref",
33
"description": "JabRef",
4-
"path": "/Applications/JabRef.app/Contents/Resources/jabrefHost.py",
4+
"path": "/Applications/JabRef.app/Contents/jabrefHost.py",
55
"type": "stdio",
6-
"allowed_extensions": [
7-
8-
"@jabfox"
9-
]
6+
"allowed_extensions": ["[email protected]", "@jabfox"]
107
}

buildres/mac/postinstall

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ chmod +r "APP_LOCATION/"*.jar
66
# Trigger an auto-install of the browser addon for chrome/chromium browsers
77
# First create the necessary path, then copy the autoinstall file.
88
install -d /Library/Application\ Support/Google/Chrome/External\ Extensions/
9-
install -m0644 /Applications/JabRef.app/Contents/Resources/native-messaging-host/chromium/bifehkofibaamoeaopjglfkddgkijdlh.json /Library/Application\ Support/Google/Chrome/External\ Extensions/bifehkofibaamoeaopjglfkddgkijdlh.json
9+
install -m0644 /Applications/JabRef.app/Contents/native-messaging-host/chromium/bifehkofibaamoeaopjglfkddgkijdlh.json /Library/Application\ Support/Google/Chrome/External\ Extensions/bifehkofibaamoeaopjglfkddgkijdlh.json
1010
# Install the native-messaging host script for firefox/chrome/chromium
1111
install -d /Library/Application\ Support/Mozilla/NativeMessagingHosts/
12-
install -m0755 /Applications/JabRef.app/Contents/Resources/native-messaging-host/firefox/org.jabref.jabref.json /Library/Application\ Support/Mozilla/NativeMessagingHosts/org.jabref.jabref.json
12+
install -m0755 /Applications/JabRef.app/Contents/native-messaging-host/firefox/org.jabref.jabref.json /Library/Application\ Support/Mozilla/NativeMessagingHosts/org.jabref.jabref.json
1313
install -d /Library/Application\ Support/Chromium/NativeMessagingHosts/
14-
install -m0755 /Applications/JabRef.app/Contents/Resources/native-messaging-host/chromium/org.jabref.jabref.json /Library/Application\ Support/Chromium/NativeMessagingHosts/org.jabref.jabref.json
14+
install -m0755 /Applications/JabRef.app/Contents/native-messaging-host/chromium/org.jabref.jabref.json /Library/Application\ Support/Chromium/NativeMessagingHosts/org.jabref.jabref.json
1515
install -d /Library/Google/Chrome/NativeMessagingHosts/
16-
install -m0755 /Applications/JabRef.app/Contents/Resources/native-messaging-host/chromium/org.jabref.jabref.json /Library/Google/Chrome/NativeMessagingHosts/org.jabref.jabref.json
16+
install -m0755 /Applications/JabRef.app/Contents/native-messaging-host/chromium/org.jabref.jabref.json /Library/Google/Chrome/NativeMessagingHosts/org.jabref.jabref.json
1717
install -d /Library/Microsoft/Edge/NativeMessagingHosts/
18-
install -m0755 /Applications/JabRef.app/Contents/Resources/native-messaging-host/chromium/org.jabref.jabref.json /Library/Microsoft/Edge/NativeMessagingHosts/org.jabref.jabref.json
18+
install -m0755 /Applications/JabRef.app/Contents/native-messaging-host/chromium/org.jabref.jabref.json /Library/Microsoft/Edge/NativeMessagingHosts/org.jabref.jabref.json
1919

2020
exit 0

0 commit comments

Comments
 (0)