-
Notifications
You must be signed in to change notification settings - Fork 1
/
cn.cnoctave.marked-reader.yml
53 lines (53 loc) · 1.6 KB
/
cn.cnoctave.marked-reader.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
app-id: cn.cnoctave.marked-reader
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=pulseaudio
- --share=network
build-options:
append-path: /usr/bin/node
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: marked-reader
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/marked-reader/flatpak-node/cache
npm_config_cache: /run/build/marked-reader/flatpak-node/npm-cache
npm_config_offline: 'true'
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
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/ ../run.sh
subdir: main
sources:
#- type: archive
# url: https://github.com/flathub/marked-reader/archive/1.0.1.tar.gz
# sha256: a2feb3f1cf002a2e4e8900f718cc5c54db4ad174e48bfcfbddcd588c7b716d5b
- type: dir
path: ..
dest: main
- generated-sources.json
# Wrapper to launch the app
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/main/marked-reader "$@"