-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.github.dbchoco.muezzin.yml
71 lines (67 loc) · 2.3 KB
/
io.github.dbchoco.muezzin.yml
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
app-id: io.github.dbchoco.muezzin
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node14
command: muezzin-run
separate-locales: false
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
build-options:
append-path: /usr/lib/sdk/node14/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: muezzin
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/muezzin/flatpak-node/cache
npm_config_cache: /run/build/muezzin/flatpak-node/npm-cache
npm_config_nodedir: /usr/lib/sdk/node14
npm_config_offline: 'true'
subdir: main
sources:
- type: archive
url: https://github.com/DBChoco/Muezzin/archive/refs/tags/v2.6.0.tar.gz
sha256: 66c3bed5458894be04a05ef5aec54623598e963c2dcfb01e34e1b99a4573ce00
dest: main
- generated-sources.json
# Wrapper to launch the app
- type: script
dest-filename: muezzin-run
commands:
- zypak-wrapper.sh /app/main/muezzin "$@"
build-commands:
# Install npm dependencies
- npm install --offline
# Build the app; in this example the `dist` script
# in package.json runs electron-builder
- |
. ../flatpak-node/electron-builder-arch-args.sh
jq '.build.linux.target="dir"' <<<$(<package.json) > package.json
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
- cp -a dist/linux*unpacked /app/main
# Install app wrapper
- install -Dm755 -t /app/bin/ ../muezzin-run
- name: platform-bootstrap
buildsystem: simple
build-commands:
- |
install -Dm644 io.github.dbchoco.muezzin.png /app/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png
install -Dm644 io.github.dbchoco.muezzin.desktop /app/share/applications/${FLATPAK_ID}.desktop
install -Dm644 io.github.dbchoco.muezzin.metainfo.xml /app/share/metainfo/$FLATPAK_ID.appdata.xml
sources:
- type: file
path: io.github.dbchoco.muezzin.metainfo.xml
- type: file
path: io.github.dbchoco.muezzin.png
- type: file
path: io.github.dbchoco.muezzin.desktop