Files
photoreport/apps/desktop

apps/desktop

Tauri 2 shell around apps/app: the same interface as the web, running natively.

What the shell adds today:

  • Sign-in through the browser (device authorization): the desktop never sees the password.
  • Refresh token in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service). Without a keychain the session stays in memory and ends when the app closes.

Next: native engine/core for local rendering, local FTP receive from cameras, disk access for originals, offline command queue (SQLite). Replaces PhotoReport_Studio (Flutter) and the archived bridge.photoreport.pt.

Develop

pnpm --filter @photoreport/desktop dev        # runs the web app dev server and opens the native window

Linux needs libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libsecret-1-dev. The shell is outside the root Cargo workspace because of those system libraries.

Release

Tag desktop-vX.Y.Z -> .gitea/workflows/desktop-release.yml. macOS and Windows installers need runners on those systems (see the workflow header).

On a Mac, without a runner: bash infra/desktop/build-macos.sh. It installs what is missing (Rust, pnpm, the wasm tools), builds the photo engine and the app, and opens the folder with PhotoReport_<version>_universal.dmg. The build is not signed: the first time, open it with right-click → Open. Signing and notarisation need an Apple Developer ID.