forked from flathub/org.zotero.Zotero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.zotero.Zotero.yaml
56 lines (56 loc) · 2.31 KB
/
org.zotero.Zotero.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
id: org.zotero.Zotero
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: zotero
rename-desktop-file: zotero.desktop
finish-args:
- --socket=x11
- --share=ipc
- --share=network
- --filesystem=home
- --filesystem=xdg-desktop
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-pictures
- --filesystem=xdg-public-share
- --filesystem=xdg-videos
modules:
- shared-modules/dbus-glib/dbus-glib.json
- name: zotero
buildsystem: simple
sources:
- type: archive
url: https://download.zotero.org/client/release/6.0.30/Zotero-6.0.30_linux-x86_64.tar.bz2
sha512: 3ad9757a038b433221c26d3a27b4a5f3ece7e481c021ca936187ea491426b3e7e4a57b17b5ea712d3e453c244e62fa1eecc6de70ac9e1d54847637642f695ddf
only-arches:
- x86_64
x-checker-data:
type: rotating-url
url: https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64
pattern: https://download.zotero.org/client/release/([0-9.]+)/Zotero-([0-9.]+)_linux-x86_64.tar.bz2
- type: file
path: org.zotero.Zotero.appdata.xml
build-commands:
- mkdir -p /app/{bin,share}
- cp -R . /app/share/zotero
- install -D chrome/icons/default/default16.png /app/share/icons/hicolor/16x16/apps/${FLATPAK_ID}.png
- install -D chrome/icons/default/default32.png /app/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -D chrome/icons/default/default48.png /app/share/icons/hicolor/48x48/apps/${FLATPAK_ID}.png
- install -D chrome/icons/default/default256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- >-
desktop-file-install
--dir=/app/share/applications
--set-key=Exec --set-value='zotero -url %U'
--set-key=Icon --set-value=${FLATPAK_ID}
--remove-key=SingleMainWindow
--set-key=X-GNOME-SingleWindow --set-value=true
--add-mime-type=x-scheme-handler/zotero
zotero.desktop
- install -D ${FLATPAK_ID}.appdata.xml /app/share/appdata/${FLATPAK_ID}.appdata.xml
- ln -s /app/share/zotero/zotero /app/bin/zotero
- >-
sed -i
's/pref("app.update.enabled", true);/pref("app.update.enabled", false);/'
/app/share/zotero/defaults/preferences/prefs.js