-
Notifications
You must be signed in to change notification settings - Fork 2
/
com.sindresorhus.Caprine.yaml
81 lines (75 loc) · 2.52 KB
/
com.sindresorhus.Caprine.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
80
81
app-id: com.sindresorhus.Caprine
branch: stable
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
separate-locales: false
command: caprine
finish-args:
# Xorg access for graphics
- --share=ipc
- --socket=x11
# Required to provide Call functionality
- --socket=pulseaudio
- --device=all
# Network access
- --share=network
# Local filesystem
- --filesystem=xdg-documents:ro
- --filesystem=xdg-pictures:ro
- --filesystem=xdg-videos:ro
# Required for notifications in various desktop environments
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
# Enable node extension by adding it to path
build-options:
append-path: /usr/lib/sdk/node18/bin
modules:
# Build and install caprine
- name: caprine
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
XDG_CACHE_HOME: /run/build/caprine/flatpak-node/cache
npm_config_cache: /run/build/caprine/flatpak-node/npm-cache
npm_config_nodedir: /usr/lib/sdk/node18
npm_config_offline: 'true'
build-commands:
- npm install --offline
- ./node_modules/.bin/tsc
- |
. ../flatpak-node/electron-builder-arch-args.sh
./node_modules/.bin/electron-builder $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
- cp -a dist/linux*unpacked /app/main
- install -Dm644 ../${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 build/icon.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- install -Dm644 ../${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm755 ../caprine.sh /app/bin/caprine
subdir: main
sources:
- type: git
url: https://github.com/sindresorhus/caprine
tag: v2.60.1
commit: feb9a71b81358d56e11fc48d6afee0f84a941dd9
dest: main
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
version-scheme: semantic
- type: script
dest-filename: caprine.sh
commands:
- set -o errexit
- TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}"
- export TMPDIR
- exec zypak-wrapper.sh /app/main/caprine "$@"
- type: file
path: com.sindresorhus.Caprine.desktop
- type: file
path: com.sindresorhus.Caprine.metainfo.xml
- generated-sources.json