app-id: org.framework.FwIcy runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: fw-icyui finish-args: # GUI permissions - --share=ipc - --socket=fallback-x11 - --socket=wayland - --device=dri # D-Bus permissions - --system-talk-name=org.freedesktop.FwIcy - --session-talk-name=org.freedesktop.Notifications # Theme access - --filesystem=xdg-config/gtk-3.0:ro - --filesystem=xdg-config/gtk-4.0:ro # Hardware access (for daemon installation) - --device=all - --filesystem=/sys/class/hwmon:ro - --filesystem=/dev/cros_ec:rw # System integration - --talk-name=org.freedesktop.PolicyKit1 modules: # Rust toolchain - name: rust buildsystem: simple build-commands: - /usr/lib/sdk/rust-stable/bin/install.sh sources: [] # Framework Fan Control Suite - name: fw-icy buildsystem: simple build-commands: # Build all components - cargo build --release --workspace # Install binaries - install -Dm755 target/release/fw-icyd ${FLATPAK_DEST}/bin/fw-icyd - install -Dm755 target/release/fw-icyctl ${FLATPAK_DEST}/bin/fw-icyctl - install -Dm755 target/release/fw-icyui ${FLATPAK_DEST}/bin/fw-icyui # Install desktop entry - install -Dm644 fw-icyui/packaging/fw-icyui.desktop ${FLATPAK_DEST}/share/applications/org.framework.FwIcy.desktop # Install icons - install -Dm644 fw-icyui/packaging/fw-icyui.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/org.framework.FwIcy.svg - install -Dm644 fw-icyui/packaging/fw-icyui.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/org.framework.FwIcy.png # Install D-Bus service file - install -Dm644 flatpak/org.freedesktop.FwIcy.service ${FLATPAK_DEST}/share/dbus-1/system-services/org.freedesktop.FwIcy.service # Install PolicyKit policy - install -Dm644 flatpak/org.framework.fwicy.policy ${FLATPAK_DEST}/share/polkit-1/actions/org.framework.fwicy.policy # Install daemon setup script - install -Dm755 flatpak/setup-daemon.sh ${FLATPAK_DEST}/bin/setup-daemon.sh # Install AppData - install -Dm644 flatpak/org.framework.FwIcy.appdata.xml ${FLATPAK_DEST}/share/metainfo/org.framework.FwIcy.appdata.xml sources: - type: dir path: ../ cleanup: - /include - /lib/pkgconfig - /share/pkgconfig - /share/aclocal - /man - /share/man - "*.la" - "*.a"