-
Notifications
You must be signed in to change notification settings - Fork 16
/
org.zotero.Zotero.yaml
69 lines (69 loc) · 2.96 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
57
58
59
60
61
62
63
64
65
66
67
68
69
id: org.zotero.Zotero
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: zotero
rename-desktop-file: zotero.desktop
finish-args:
- --device=dri
- --persist=.zotero
- --persist=Zotero
- --share=ipc
- --share=network
- --socket=fallback-x11
- --socket=wayland
- --own-name=org.mozilla.zotero.*
# below file permission can be removed with minimal impact on usability,
# we keep these permissions to preserve the functionality of the unsandboxed version
# See: https://github.com/flathub/org.zotero.Zotero/issues/82
# and the app description for details.
- --filesystem=home
cleanup:
- /share/zotero/${FLATPAK_ID}.appdata.xml
- /share/zotero/policies.json
modules:
- shared-modules/dbus-glib/dbus-glib.json
- name: zotero
buildsystem: simple
sources:
- type: archive
url: https://download.zotero.org/client/release/7.0.11/Zotero-7.0.11_linux-x86_64.tar.bz2
sha512: ec69ba264a3bf05a579057122738a38316f7de43ce46229d3b6ef6b13c4a43b01d647179206b46a1c46d5e093579f81dc875d022675d167ad7e023ac7558f806
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
- type: file
path: policies.json
# extracted from https://github.com/zotero/zotero/blob/main/app/mac/Contents/Resources/zotero.icns
- type: file
path: 256x256.png
- type: file
path: 512x512.png
build-commands:
- mkdir -p /app/{bin,share}
- cp -R . /app/share/zotero
- install -D icons/icon32.png /app/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
- install -D icons/icon64.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- install -D icons/icon128.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
- install -D 256x256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
- install -D 512x512.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
# - install -D icons/symbolic.svg /app/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}.svg
- >-
desktop-file-install
--dir=/app/share/applications
--set-key=Exec --set-value='zotero -url %U'
--set-key=Icon --set-value=${FLATPAK_ID}
--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
# disable auto-updates
# https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson
# https://mozilla.github.io/policy-templates/#disableappupdate
- mkdir -p /app/share/zotero/distribution
- install -D policies.json /app/share/zotero/distribution/policies.json