-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.github.qier222.YesPlayMusic.yaml
98 lines (93 loc) · 3.53 KB
/
io.github.qier222.YesPlayMusic.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
app-id: io.github.qier222.YesPlayMusic
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
separate-locales: false
rename-icon: yesplaymusic
rename-desktop-file: yesplaymusic.desktop
command: yesplaymusic
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --share=network
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.mpris.MediaPlayer2.yesplaymusic
cleanup:
- '*.a'
- '*.la'
- /include
- /lib/cmake
- /lib/pkgconfig
- /man
- /share/man
- /share/gtk-doc
modules:
- name: yt-dlp
no-autogen: true
no-make-install: true
make-args:
- yt-dlp
- PYTHON=/usr/bin/python3
post-install:
- install yt-dlp /app/bin
sources:
- type: archive
url: https://github.com/yt-dlp/yt-dlp/releases/download/2024.12.13/yt-dlp.tar.gz
sha256: ba55dd031ffa8452d0624a3c2ac993427f3aac2e5a5679f253bdd108d764e7c4
x-checker-data:
type: json
url: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name=="yt-dlp.tar.gz") | .browser_download_url
- name: yesplaymusic
buildsystem: simple
build-options:
no-debuginfo: true
build-commands:
- bsdtar --to-stdout -xf yesplaymusic.deb data.* | bsdtar -xf -
- cp -a opt/YesPlayMusic $FLATPAK_DEST/
- rm -r usr/share/doc
- rm -r usr/share/icons/hicolor/1024x1024
- cp -a usr/share $FLATPAK_DEST/
- desktop-file-edit --set-key="Exec" --set-value="yesplaymusic %U" $FLATPAK_DEST/share/applications/*.desktop
- desktop-file-edit --set-key="Categories" --set-value="AudioVideo" $FLATPAK_DEST/share/applications/*.desktop
- install -Dm644 io.github.qier222.YesPlayMusic.metainfo.xml -t /app/share/metainfo
- install -Dm755 yesplaymusic.sh /app/bin/yesplaymusic
sources:
- type: file
dest-filename: yesplaymusic.deb
only-arches:
- aarch64
url: https://github.com/stark81/my_yesplaymusic/releases/download/v0.4.17/yesplaymusic_0.4.17_arm64.deb
sha256: a396618bc8126fd92a7d5ea4117e6114c77eda15f39a7b374bb5dfb531147590
x-checker-data:
type: json
url: https://api.github.com/repos/stark81/my_yesplaymusic/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '"https://github.com/stark81/my_yesplaymusic/releases/download/v"
+ $version + "/yesplaymusic_" + $version + "_arm64.deb"'
- type: file
dest-filename: yesplaymusic.deb
only-arches:
- x86_64
url: https://github.com/stark81/my_yesplaymusic/releases/download/v0.4.17/yesplaymusic_0.4.17_amd64.deb
sha256: 4af96a1501b7394ae9a5be821c55b20cc53086b9359227b1279a99c2177b65b8
x-checker-data:
is-main-source: true
type: json
url: https://api.github.com/repos/stark81/my_yesplaymusic/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '"https://github.com/qier222/YesPlayMusic/releases/download/v"
+ $version + "/yesplaymusic_" + $version + "_amd64.deb"'
- type: file
path: io.github.qier222.YesPlayMusic.metainfo.xml
- type: script
dest-filename: yesplaymusic.sh
commands:
- export TMPDIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID
- exec zypak-wrapper.sh /app/YesPlayMusic/yesplaymusic "$@"