-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.github.HuntedRaven7.BreakTime.yml
More file actions
61 lines (56 loc) · 2.06 KB
/
io.github.HuntedRaven7.BreakTime.yml
File metadata and controls
61 lines (56 loc) · 2.06 KB
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
app-id: io.github.HuntedRaven7.BreakTime
runtime: org.gnome.Platform
runtime-version: '50'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: io.github.HuntedRaven7.BreakTime
finish-args:
# Wayland & X11 display access
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
# Network access for RSS feeds
- --share=network
# Desktop notifications
- --talk-name=org.freedesktop.Notifications
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/break-time/cargo
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
build-args:
- --share=network
cleanup:
- /include
- /lib/pkgconfig
- /share/pkgconfig
- /share/aclocal
- /man
- /share/man
- /share/gtk-doc
- /share/info
- "*.la"
- "*.a"
modules:
- name: break-time
buildsystem: simple
build-commands:
- cargo --version
- cargo fetch --manifest-path Cargo.toml --verbose
- cargo build --release --verbose
# Install binary with full App ID
- install -Dm755 target/release/break-time /app/bin/io.github.HuntedRaven7.BreakTime
- ln -s io.github.HuntedRaven7.BreakTime /app/bin/break-time
# Install Desktop file
- install -Dm644 data/io.github.HuntedRaven7.BreakTime.desktop /app/share/applications/io.github.HuntedRaven7.BreakTime.desktop
# Install Metainfo
- install -Dm644 data/io.github.HuntedRaven7.BreakTime.metainfo.xml /app/share/metainfo/io.github.HuntedRaven7.BreakTime.metainfo.xml
# Install Icons (SVG and PNG for maximum compatibility)
- install -Dm644 data/icons/hicolor/scalable/apps/io.github.HuntedRaven7.BreakTime.svg /app/share/icons/hicolor/scalable/apps/io.github.HuntedRaven7.BreakTime.svg
- install -Dm644 data/icons/hicolor/128x128/apps/io.github.HuntedRaven7.BreakTime.png /app/share/icons/hicolor/128x128/apps/io.github.HuntedRaven7.BreakTime.png
# Internal validation check
- appstreamcli validate --no-net /app/share/metainfo/io.github.HuntedRaven7.BreakTime.metainfo.xml
sources:
- type: dir
path: .