# Quintodrome DesktopA [Tauri](https://tauri.app) desktop wrapper that hosts [Navidrome](https://www.navidrome.org)as its own web app.On launch the app:1. Checks whether a Navidrome server is already listening on `127.0.0.1:4533`(via its `/ping` health endpoint). If so, it reuses it as-is.2. Otherwise it spawns the bundled `navidrome` binary as a **separate sidecarprocess**, pointed at the OS app-data/music directories, and waits for it tobecome ready.3. Loads the Navidrome UI in the content webview, below a thin toolbar withback/forward/reload buttons and an address bar.4. On exit, sends `SIGTERM` to the spawned server so it shuts down gracefully(falls back to a hard kill after 3s).On a **fresh install** (no existing Navidrome data) the app also auto-createsthe initial admin user (`admin` / `admin`) behind the scenes, and auto-logs-inas that user on startup β you skip both Navidrome's "create an admin user"first-run screen and the login page. Change the password in Navidrome settingsafterwards; override it via `QUINTODROME_ADMIN_PASSWORD`.## How to launchFrom the repo root:```sh# 0. one-time: make sure Node >= 24 is active (already pinned in .nvmrc)nodenv local 24.15.0 # or `nvm use` / ensure `node --version` is v24+# 1. build the Navidrome server + stage it as the sidecar./desktop/scripts/build.sh --skip-tauri# 2. launch the appcd desktop/src-tauri && cargo run```A window opens on the splash screen, the app starts Navidrome (or reuses arunning one), then loads the UI. Navidrome is reachable at<http://127.0.0.1:4533> for the first-run admin setup.To build a standalone `.app` instead:```sh./desktop/scripts/build.sh# β desktop/src-tauri/target/release/bundle/macos/Quintodrome.app```## Layout```desktop/βββ src/ # toolbar.html (nav bar) + index.html (loading splash)βββ src-tauri/β βββ src/ # Rust: sidecar spawn, health-check, lifecycle, toolbarβ βββ binaries/ # navidrome-<target-triple> sidecar (built, not committed)β βββ icons/ # App iconsβ βββ tauri.conf.jsonβ βββ Cargo.tomlβββ scripts/βββ build.sh # Build navidrome + stage sidecar + tauri buildβββ gen_icon.go # Regenerates the source icon (optional)```## Prerequisites- Rust (stable) with the `aarch64-apple-darwin` / `x86_64-apple-darwin` (ormatching host) target.- Node.js >= 24 (the repo already pins this in `.nvmrc`; via `nodenv` you canrun `nodenv local 24.15.0`).- Go >= 1.26 (for building the Navidrome binary).## Build```sh./desktop/scripts/build.sh```This builds the Navidrome server (`make build`), stages it under`src-tauri/binaries/navidrome-<target-triple>` (with the executable bit set),then runs `npx tauri build`. The packaged app lands in`desktop/src-tauri/target/release/bundle/`.To build the sidecar without running the full Tauri bundle:```sh./desktop/scripts/build.sh --skip-tauri```## Run (development)```sh# 1. build + stage the sidecar binary./desktop/scripts/build.sh --skip-tauri# 2. run the appcd desktop/src-tauri && cargo run```The Rust `build.rs` copies the staged sidecar next to the dev binary(`target/debug/navidrome`) automatically, so plain `cargo run` works β no`tauri dev` CLI needed.## ConfigurationEnvironment variables override the defaults:| Variable | Default | Purpose || --------------------------- | ------------------------ | ------------------------------- || `QUINTODROME_HOST` | `127.0.0.1` | Address the webview connects to || `QUINTODROME_PORT` | `4533` | Port for the Navidrome server || `QUINTODROME_MUSIC_FOLDER` | OS music dir (e.g. `~/Music`) | Where your music lives || `QUINTODROME_ADMIN_PASSWORD` | `admin` | Password for the auto-created admin user (fresh installs only) || `QUINTODROME_PUBLIC_URL` | `http://quintodrome` | Friendly origin shown in the address bar |The data folder (DB, cache) is always the OS app-data directory(e.g. `~/Library/Application Support/com.quineglobal.drome` on macOS).> Note: if a Navidrome server is already running on the configured host/port,> the app simply loads it and does **not** start a second instance.## Updates (macOS)The Mac app updates itself with [Sparkle](https://sparkle-project.org/), thestandard macOS updater, through[tauri-plugin-sparkle-updater](https://crates.io/crates/tauri-plugin-sparkle-updater):**Quintodrome βΊ Check for Updatesβ¦**, plus a daily check in the background.Sparkle shows its native "A new version is available" window and installs theupdate itself (`src-tauri/src/updater.rs`).- **Feeds:** one appcast per architecture, which the release workflow writesinto the Homebrew tap (`appcasts/quintodrome-<arch>.xml`); the app reads themthrough git.quineglobal.com. `src-tauri/Info.plist` names the arm64 one,and Intel builds switch to theirs at startup.- **Signing:** each update zip is signed with an Ed25519 key. The public halfis `SUPublicEDKey` in `src-tauri/Info.plist`; the private half is the`SPARKLE_PRIVATE_KEY` Actions secret (base64 of the 32-byte seed, as Sparkle's`generate_keys -x` exports it). Sparkle refuses updates not signed with it.Lose the key and installed apps can't be updated by Sparkle any more.- **Version:** release builds take the tag's version (`v1.2.3` β `1.2.3`,`CFBundleShortVersionString`, what people see); `tauri.conf.json`'s `0.1.0`is only for local builds. Sparkle compares `CFBundleVersion` instead, andignores anything after a `-` (`1.0.0-alpha.10` and `1.0.0-alpha.11` arethe same to it), so that one is the release workflow's run number, whichonly goes up, and so is the appcast's `sparkle:version`.- **Homebrew:** the cask says `auto_updates true`, so `brew upgrade` leavesthe app to Sparkle (`brew upgrade --greedy` still upgrades it).- **Building:** `scripts/download-sparkle.sh src-tauri` fetchesSparkle.framework and its tools (`build.sh` does it for you); they'regit-ignored. Sparkle only runs in the packaged `.app`, not `cargo run`.