-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.github.monitorbrightnesscontrol.app.yml
More file actions
52 lines (49 loc) · 2.11 KB
/
Copy pathio.github.monitorbrightnesscontrol.app.yml
File metadata and controls
52 lines (49 loc) · 2.11 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
# Flatpak manifest for Monitor Brightness Control.
#
# Build:
# flatpak-builder --user --install --force-clean build-flatpak \
# packaging/linux/io.github.monitorbrightnesscontrol.app.yml
#
# Note: Flatpak sandboxing makes /dev/i2c-* hard to reach. We request
# device-access for "all" and a host-talk for the system-bus only as a
# best effort. For full DDC/CI support users should prefer the AppImage
# or .deb on Linux.
app-id: io.github.monitorbrightnesscontrol.app
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
- org.freedesktop.Sdk.Extension.node20
command: monitor-brightness-control
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --device=all # /dev/i2c-* — required for DDC/CI
- --filesystem=host-os # /sys/class/backlight read access
- --filesystem=xdg-config/MonitorBrightnessControl
- --talk-name=org.freedesktop.login1
modules:
- name: monitor-brightness-control
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node20/bin
env:
CARGO_HOME: /run/build/monitor-brightness-control/cargo
build-commands:
- npm --prefix app ci --offline || npm --prefix app install
- npm --prefix app run build
# `--features custom-protocol` is mandatory: without it Tauri serves the
# webview from devUrl (http://localhost:5173) instead of the embedded
# frontend, so the Flatpak would start with ERR_CONNECTION_REFUSED.
- cargo build --release --manifest-path app/src-tauri/Cargo.toml --features custom-protocol
- install -Dm755 target/release/monitor-brightness-control /app/bin/monitor-brightness-control
- install -Dm644 packaging/linux/monitor-brightness-control.desktop
/app/share/applications/io.github.monitorbrightnesscontrol.app.desktop
- install -Dm644 app/src-tauri/icons/icon.png
/app/share/icons/hicolor/512x512/apps/io.github.monitorbrightnesscontrol.app.png
sources:
- type: dir
path: ../..