-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathio.github.dividebysandwich.lightningview.yml
More file actions
62 lines (51 loc) · 2.33 KB
/
io.github.dividebysandwich.lightningview.yml
File metadata and controls
62 lines (51 loc) · 2.33 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
62
app-id: io.github.dividebysandwich.lightningview
runtime: org.freedesktop.Platform
# 25.08 ships rustc 1.94 in the rust-stable extension, which satisfies the
# >=1.92 MSRV that egui 0.34 requires. 24.08 only had rust 1.89 and the build
# would fail with "rustc 1.89.0 is not supported by ecolor/eframe/egui/...".
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
# llvm18 is not published for 25.08; the available branches are llvm20/llvm21.
- org.freedesktop.Sdk.Extension.llvm20
command: lightningview
finish-args:
# --- GUI / Display ---
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --share=ipc
# --- File Access ---
# Essential for an image viewer to open files passed as arguments
# from anywhere on the system (e.g. "Open With").
- --filesystem=host
# --- System Integration ---
# Read system theme/settings (helps eframe/egui look correct).
# The legacy `--config=dconf` shorthand was removed; modern flatpak wants
# the explicit dconf trio: a socket bind and a D-Bus talk permission.
- --filesystem=xdg-run/dconf
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=dconf
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
env:
# Use the in-tree .cargo/config.toml + vendor/ that the CI step prepared.
CARGO_HOME: .cargo
modules:
- name: lightningview
buildsystem: simple
build-commands:
# Build offline against the vendored sources copied in via `type: dir`.
- cargo --offline build --release --verbose --manifest-path Cargo.toml
# Install Binary
- install -Dm755 target/release/lightningview /app/bin/lightningview
# Install Icon (Flathub requires the file to be prefixed with the app id)
- install -Dm644 lightningview.png /app/share/icons/hicolor/256x256/apps/io.github.dividebysandwich.lightningview.png
# Install Desktop File (Flathub requires the file to be prefixed with the app id)
- install -Dm644 lightningview.desktop /app/share/applications/io.github.dividebysandwich.lightningview.desktop
- desktop-file-edit --set-icon=io.github.dividebysandwich.lightningview /app/share/applications/io.github.dividebysandwich.lightningview.desktop
sources:
- type: dir
path: .