Add flatpak manifest

This commit is contained in:
2026-05-31 23:24:59 +02:00
parent 3027fa207c
commit 39488ec094
4 changed files with 81 additions and 0 deletions

4
.gitignore vendored
View File

@@ -2,3 +2,7 @@
# These are backup files generated by rustfmt
**/*.rs.bk
# Flatpak stuff
/repo
*.flatpak

29
README.md Normal file
View File

@@ -0,0 +1,29 @@
# immich-rs
Desktop client for https://immich.app/
## Building (Flatpak)
1) Install flatpak
2) Install runtime and SDK
```
flatpak --user install flathub \
org.freedesktop.Platform//25.08 \
org.freedesktop.Sdk//25.08 \
org.freedesktop.Sdk.Extension.rust-stable//25.08
```
3) Build flatpak
```
flatpak-builder --user --force-clean --repo=repo build-dir sh.nubo.immich-rs.yml
```
Add `--disable-rofiles-fuse` if running in an environment without FUSE.
4) Export flatpak bundle
```
flatpak build-bundle repo sh.nubo.immich-rs.flatpak sh.nubo.immich-rs
```

7
assets/immich-rs.desktop Normal file
View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Name=immich-rs
Comment=Immich desktop client
Exec=immich-rs
Icon=sh.nubo.immich-rs
Type=Application
Categories=Network;Photography;AudioVideo;

41
sh.nubo.immich-rs.yml Normal file
View File

@@ -0,0 +1,41 @@
app-id: sh.nubo.immich-rs
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
command: immich-rs
finish-args:
# Core Wayland access
- --socket=wayland
# GPU acceleration (DRI)
- --device=dri
# Access to XDG dirs
- --filesystem=xdg-config/immich-rs:create
- --filesystem=xdg-data/immich-rs:create
- --filesystem=xdg-cache/immich-rs:create
# Talk to portal for file dialogs, etc.
- --talk-name=org.freedesktop.portal.Desktop
# Network access
- --share=network
modules:
- name: immich-rs
buildsystem: simple
build-commands:
- cargo build --release --locked
- install -Dm755 ./target/release/immich-rs -t /app/bin/
- install -Dm644 ./assets/immich-rs.desktop /app/share/applications/sh.nubo.immich-rs.desktop
- install -Dm644 ./assets/immich-logo.svg /app/share/icons/hicolor/scalable/apps/sh.nubo.immich-rs.svg
# - install -Dm644 ./assets/sh.nubo.immich-rs.metainfo.xml -t /app/share/metainfo/
sources:
- type: dir
path: .