-
Notifications
You must be signed in to change notification settings - Fork 2
/
com.hperrin.StreamOverlay.yaml
79 lines (79 loc) · 2.71 KB
/
com.hperrin.StreamOverlay.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
75
76
77
78
79
app-id: com.hperrin.StreamOverlay
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '22.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
command: run.sh
separate-locales: false
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --share=network
- --device=dri
# Needed for opening, saving config files.
- --filesystem=xdg-documents
- --filesystem=xdg-download
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: stream-overlay
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/stream-overlay/flatpak-node/cache
npm_config_cache: /run/build/stream-overlay/flatpak-node/npm-cache
npm_config_offline: 'true'
build-commands:
- jq '.build.linux.target="dir"' <<<$(<package.json) > package.json
# Install SvelteKit app dependencies
- cd app/app && npm install --offline
# Build SvelteKit app
- npm run build:svelte
# Install Electron app dependencies
- cd app && npm install --offline
# Build Electron app
- npm run build:electron
# Install npm dependencies
- npm install --offline
# Build the app
- npm run package:linux -- $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
- install -D -m644 -t /app/share/applications ../com.hperrin.StreamOverlay.desktop
- install -D -m644 -t /app/share/metainfo ../com.hperrin.StreamOverlay.metainfo.xml
- install -D -m644 -t /app/share/mime/application/ ../x-stream-overlay-config.xml
- install -D -m644 -T ../128x128.png /app/share/icons/hicolor/128x128/apps/com.hperrin.StreamOverlay.png
- install -D -m644 -T ../logo.svg /app/share/icons/hicolor/scalable/apps/com.hperrin.StreamOverlay.svg
subdir: main
sources:
#- type: archive
# url: https://github.com/hperrin/stream-overlay/archive/2.0.0.tar.gz
# sha256: abc123...
- type: dir
path: .
dest: main
- generated-sources.json
- type: file
path: com.hperrin.StreamOverlay.desktop
- type: file
path: com.hperrin.StreamOverlay.metainfo.xml
- type: file
path: x-stream-overlay-config.xml
- type: file
path: ./app/assets/logo.svg
- type: file
path: ./app/assets/128x128.png
# Wrapper to launch the app
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/main/stream-overlay "$@"