-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathio.github.thaunknown.miru.yaml
58 lines (55 loc) · 2.26 KB
/
io.github.thaunknown.miru.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
app-id: io.github.thaunknown.miru
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: miru-run
separate-locales: false
finish-args:
- --device=dri
- --share=ipc
- --share=network
- --socket=x11
- --own-name=org.mpris.MediaPlayer2.chromium.instance3
- --socket=pulseaudio
- --filesystem=xdg-videos:rw
- --filesystem=xdg-run/discord-ipc-0:ro
# For inhibiting sleep
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.ScreenSaver
modules:
- name: miru
buildsystem: simple
build-commands:
- chmod +x miru.AppImage
- ./miru.AppImage --appimage-extract
- rm miru.AppImage
- cp squashfs-root/miru.desktop io.github.thaunknown.miru.desktop
- cp squashfs-root/miru.png io.github.thaunknown.miru.png
- desktop-file-edit --set-icon io.github.thaunknown.miru --set-key Exec --set-value
'miru-run %u' io.github.thaunknown.miru.desktop
- install -D miru-run -t /app/bin
- install -Dm644 io.github.thaunknown.miru.metainfo.xml -t /app/share/metainfo
- install -Dm644 io.github.thaunknown.miru.desktop -t /app/share/applications
- install -Dm644 io.github.thaunknown.miru.png /app/share/icons/hicolor/256x256/apps/io.github.thaunknown.miru.png
- mv squashfs-root /app/bin/miru
sources:
- type: script
dest-filename: miru-run
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- zypak-wrapper /app/bin/miru/miru "$@"
- type: file
path: io.github.thaunknown.miru.metainfo.xml
- type: file
dest-filename: miru.AppImage
url: https://github.com/thaunknown/miru/releases/download/v5.5.9/linux-Miru-5.5.9.AppImage
sha512: 5d63e7f4f8ce42b5087ba251fe307e1842b525a164a2f5b3cd0876dbc6087e31a3f08e57ec0b3f18976e028bd5cdf3588bda05a6748a692704149b50657de656
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/thaunknown/miru/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '"https://github.com/thaunknown/miru/releases/download/v" + $version
+ "/linux-Miru-" + $version + ".AppImage"'