-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.zoho.writer.yaml
60 lines (60 loc) · 1.99 KB
/
com.zoho.writer.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
app-id: com.zoho.writer
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
command: writer
finish-args:
- --device=dri
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-pictures
- --filesystem=xdg-public-share
- --filesystem=xdg-videos
- --share=ipc
- --share=network
- --socket=pulseaudio
# needs electron v11 (chromium v87) or newer with ozone enabled
# https://github.com/electron/electron/issues/10915
# - --socket=wayland
- --socket=x11
modules:
- name: writer
buildsystem: simple
build-commands:
- install -Dm755 -t /app/bin/ apply_extra writer
- install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications/
- install -Dm644 ${FLATPAK_ID}.png -t /app/share/icons/hicolor/256x256/apps/
sources:
- type: extra-data
filename: app.deb
url: https://files-accl.zohopublic.com/public/zohowriter/download/linux
sha256: 57fc0f07248f315cae821592ce99e3dd1ff4dd01b42cc498260c09517db1f73b
size: 45109974
# doesn't work, seems like failing on timestamp extraction
#x-checker-data:
# type: rotating-url
# url: https://files-accl.zohopublic.com/public/zohowriter/download/linux
- type: script
dest-filename: apply_extra
commands:
- bsdtar -Oxf app.deb data.tar.xz | bsdtar -xJf - --strip-components=3
./opt/Writer
- rm -f app.deb
- install -Dm755 /app/bin/stub_sandbox chrome-sandbox
- type: script
dest-filename: stub_sandbox
commands:
- |
echo Stub sandbox ignoring command: $@
exit 1
- type: script
dest-filename: writer
commands:
- export TMPDIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID
- exec zypak-wrapper /app/extra/writer "$@"
- type: file
path: com.zoho.writer.desktop
- type: file
path: com.zoho.writer.png