app-id: org.openhush.OpenHush runtime: org.freedesktop.Platform runtime-version: '24.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable - org.freedesktop.Sdk.Extension.llvm18 command: openhush finish-args: # Display access - --share=ipc - --socket=wayland - --socket=fallback-x11 # Audio access (microphone for recording) - --socket=pulseaudio # GPU access (for CUDA/Vulkan acceleration) - --device=dri # D-Bus access for system tray and notifications - --talk-name=org.freedesktop.Notifications - --talk-name=org.kde.StatusNotifierWatcher - --own-name=org.openhush.Daemon1 # Network access (for model downloads) - --share=network # Config and data directories - --filesystem=xdg-config/openhush:create - --filesystem=xdg-data/openhush:create build-options: append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin env: CARGO_HOME: /run/build/openhush/cargo RUSTFLAGS: '-L /usr/lib/sdk/llvm18/lib' modules: # ALSA development files - name: alsa-lib buildsystem: autotools sources: - type: archive url: https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.12.tar.bz2 sha256: 4868cd908627c2bcd6d56ca5b1bda1f3bc2e8ae30d1bfa390a2f1f06b4e2748a - name: openhush buildsystem: simple build-commands: # Build release binary - cargo build --release --locked # Install binary - install -Dm755 target/release/openhush /app/bin/openhush # Install desktop entry - install -Dm644 packaging/flatpak/org.openhush.OpenHush.desktop /app/share/applications/org.openhush.OpenHush.desktop # Install metainfo - install -Dm644 packaging/flatpak/org.openhush.OpenHush.metainfo.xml /app/share/metainfo/org.openhush.OpenHush.metainfo.xml # Install icons (when available) # - install -Dm644 assets/icons/128x128/openhush.png /app/share/icons/hicolor/128x128/apps/org.openhush.OpenHush.png # - install -Dm644 assets/icons/256x256/openhush.png /app/share/icons/hicolor/256x256/apps/org.openhush.OpenHush.png # Install license - install -Dm644 LICENSE /app/share/licenses/openhush/LICENSE sources: - type: git url: https://github.com/claymore666/openhush.git tag: v0.8.0 # commit: # Cargo dependencies (generated with flatpak-cargo-generator) # - type: file # path: cargo-sources.json