-
Notifications
You must be signed in to change notification settings - Fork 2
/
dev.aunetx.deezer.yml
76 lines (74 loc) · 2.9 KB
/
dev.aunetx.deezer.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
app-id: dev.aunetx.deezer
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
tags: [proprietary]
finish-args:
# Basic permissions
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --share=network
# Allow other instances to see lockfiles
- --env=TMPDIR=/var/tmp
# DBus permissions
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.kde.StatusNotifierItem
- --talk-name=com.canonical.dbusmenu
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.gnome.SettingsDaemon
- --talk-name=org.gnome.SessionManager
- --own-name=org.mpris.MediaPlayer2.chromium.*
# Fs access: music to send mp3
- --filesystem=xdg-music:ro
modules:
- name: deezer
buildsystem: simple
sources:
# The application datas
- type: file
path: dev.aunetx.deezer.appdata.xml
# Wrapper to launch the app
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper /app/main/deezer-desktop "$@"
- type: archive
url: https://github.com/aunetx/deezer-linux/releases/download/v6.0.150-1/deezer-desktop-6.0.150-x64.tar.xz
sha256: d1a85f25568539c97965c23553f7ae9c1c455d2f545c6daf3f161c1f8f9d951d
only-arches: [x86_64]
dest: archive
x-checker-data:
type: json
url: https://api.github.com/repos/aunetx/deezer-linux/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^v"; "") | sub("-[0-9]$"; "")
url-query: .assets[] | select(.name=="deezer-desktop-" + $version + "-x64.tar.xz")
| .browser_download_url
- type: archive
url: https://github.com/aunetx/deezer-linux/releases/download/v6.0.150-1/deezer-desktop-6.0.150-arm64.tar.xz
sha256: 9ae36969d8e33afb5a8f681fe7b962f56d18c0a95e0ba2f94daa2e0522051027
only-arches: [aarch64]
dest: archive
x-checker-data:
type: json
url: https://api.github.com/repos/aunetx/deezer-linux/releases/latest
tag-query: .tag_name
version-query: $tag | sub("^v"; "") | sub("-[0-9]$"; "")
url-query: .assets[] | select(.name=="deezer-desktop-" + $version + "-arm64.tar.xz")
| .browser_download_url
build-commands:
- cp -a archive /app/main
# Install app wrapper
- install -Dm755 -t /app/bin/ run.sh
# Install app datas
- install -Dm644 dev.aunetx.deezer.appdata.xml /app/share/appdata/dev.aunetx.deezer.appdata.xml
- install -Dm644 /app/main/resources/dev.aunetx.deezer.svg /app/share/icons/hicolor/scalable/apps/dev.aunetx.deezer.svg
- install -Dm644 /app/main/resources/dev.aunetx.deezer.desktop /app/share/applications/dev.aunetx.deezer.desktop