-
Notifications
You must be signed in to change notification settings - Fork 11
/
org.onlyoffice.desktopeditors.json
66 lines (66 loc) · 3.07 KB
/
org.onlyoffice.desktopeditors.json
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
{
"app-id": "org.onlyoffice.desktopeditors",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "23.08",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"command": "desktopeditors",
"separate-locales": false,
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--socket=pulseaudio",
"--share=network",
"--filesystem=host",
"--filesystem=~/.local/share/gtk-3.0",
"--filesystem=/tmp",
"--filesystem=xdg-run/gvfs",
"--filesystem=xdg-run/gvfsd",
"--talk-name=org.gtk.vfs.*",
"--env=LC_ALL=C.UTF-8",
"--device=dri"
],
"modules": [
{
"name": "desktopeditors",
"buildsystem": "simple",
"build-commands": [
"install -Dm755 desktop-editors /app/bin/desktopeditors",
"cp /usr/bin/ar /app/bin",
"mkdir -p /app/bin/opt/onlyoffice",
"mv opt/onlyoffice/desktopeditors /app/bin/opt/onlyoffice/desktopeditors",
"ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so /app/lib",
"install -Dm755 org.onlyoffice.desktopeditors.metainfo.xml /app/share/metainfo/org.onlyoffice.desktopeditors.metainfo.xml",
"mkdir -p /app/share/applications",
"sed 's|Icon=.*|Icon=org.onlyoffice.desktopeditors|;' usr/share/applications/onlyoffice-desktopeditors.desktop > /app/share/applications/org.onlyoffice.desktopeditors.desktop",
"sed -i -e 's|Exec=/usr/bin/onlyoffice-|Exec=|;' /app/share/applications/org.onlyoffice.desktopeditors.desktop",
"echo \"package = flatpak\" > /app/bin/opt/onlyoffice/desktopeditors/converter/package.config",
"for icon_size in 16 24 32 48 64 128 256; do install -Dm644 usr/share/icons/hicolor/${icon_size}x${icon_size}/apps/onlyoffice-desktopeditors.png /app/share/icons/hicolor/${icon_size}x${icon_size}/apps/org.onlyoffice.desktopeditors.png; done"
],
"sources": [
{
"type": "archive",
"url": "http://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors-8.2.2-x64.tar.xz",
"sha256": "ad41f1e16c8c567638826fd288d61ab45763ffe2c45af12f101e36931ae21287",
"strip-components": 0
},
{
"type": "script",
"dest-filename": "desktop-editors",
"commands": [
"export LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH",
"export CUSTOM_FONTS_PATH=/run/host/usr/local/share/fonts",
"cd /app/bin/opt/onlyoffice/desktopeditors/",
"exec ./DesktopEditors \"$@\""
]
},
{
"type": "file",
"path": "org.onlyoffice.desktopeditors.metainfo.xml"
}
]
}
]
}