-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.gitlab.azymohliad.WatchMate.yml
40 lines (40 loc) · 1.7 KB
/
io.gitlab.azymohliad.WatchMate.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
id: io.gitlab.azymohliad.WatchMate
runtime: org.gnome.Platform
runtime-version: '47'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: watchmate
finish-args:
- --allow=bluetooth
- --share=ipc
- --share=network # Download firmware releases
- --device=dri # Hardware acceleration
- --socket=wayland # Wayland
- --socket=fallback-x11 # X11
# - --socket=session-bus # Notifications propagation
- --system-talk-name=org.bluez # Bluetooth
- --talk-name=org.mpris.MediaPlayer2.* # Media player control
modules:
- name: watchmate
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/watchmate/cargo
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm 755 target/release/watchmate -t /app/bin
- install -Dm 644 assets/${FLATPAK_ID}.desktop -t /app/share/applications
- install -Dm 644 assets/${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo
- install -Dm 644 assets/${FLATPAK_ID}.gschema.xml -t /app/share/glib-2.0/schemas
- install -Dm 644 assets/icons/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps
- install -Dm 644 assets/icons/${FLATPAK_ID}-symbolic.svg -t /app/share/icons/hicolor/symbolic/apps
- glib-compile-schemas /app/share/glib-2.0/schemas
sources:
- type: git
url: https://github.com/azymohliad/watchmate
commit: f49836f9df37e42aea27012bb6fd976a787ec428
tag: v0.5.3
- cargo-sources.json