-
Notifications
You must be signed in to change notification settings - Fork 6
/
org.zulip.Zulip.yaml
74 lines (74 loc) · 2.4 KB
/
org.zulip.Zulip.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
70
71
72
73
74
app-id: org.zulip.Zulip
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
command: run.sh
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --share=network
- --device=dri
- --filesystem=xdg-download
- --filesystem=xdg-documents
- --filesystem=xdg-pictures
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=com.canonical.AppMenu.Registrar
build-options:
append-path: /usr/lib/sdk/node18/bin
cflags: -O2 -g
cxxflags: -O2 -g
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: zulip
buildsystem: simple
subdir: main
build-options:
env:
XDG_CACHE_HOME: /run/build/zulip/flatpak-node/cache
npm_config_cache: /run/build/zulip/flatpak-node/npm-cache
npm_config_nodedir: /usr/lib/sdk/node18
npm_config_offline: 'true'
build-commands:
- npm install --offline
- |
. ../flatpak-node/electron-builder-arch-args.sh
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
- cp -a dist/linux*unpacked /app/main
- |
for size in 16 24 32 48 64 96 128 256 512
do install -D -m 644 build/icons/${size}x${size}.png $FLATPAK_DEST/share/icons/hicolor/${size}x${size}/apps/$FLATPAK_ID.png
done
- install -D -m 755 -t $FLATPAK_DEST/bin ../run.sh
- install -D -m 644 -t $FLATPAK_DEST/share/applications ../$FLATPAK_ID.desktop
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo ../$FLATPAK_ID.metainfo.xml
sources:
- type: git
url: https://github.com/zulip/zulip-desktop.git
tag: v5.11.1
commit: 38c7695a993fa06b47d07543a8e4c1eae527686f
dest: main
x-checker-data:
type: json
url: https://api.github.com/repos/zulip/zulip-desktop/releases/latest
tag-query: .tag_name
version-query: .tag_name | sub("^v"; "")
timestamp-query: .published_at
- generated-sources.json
- type: script
dest-filename: run.sh
commands:
- set -eu
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper.sh /app/main/zulip "$@"
- type: file
path: org.zulip.Zulip.desktop
- type: file
path: org.zulip.Zulip.metainfo.xml