feat: media keys, device recovery, settings and a macOS app bundle

- Media keys and Now Playing (souvlaki): title, artist, album, cover and
  position published on track and state changes; play/pause/toggle,
  next/previous and seeking from the OS controls
- Audio engine reopens the default output when the device changes or
  disappears, reloading the current track at the same position; with no
  device it keeps looking and resumes when one appears. Underruns are
  ignored rather than treated as device loss
- Settings screen: streaming quality (Best, Balanced <=192 kbps, Data
  saver <=128 kbps), appearance (system/light/dark), clear cover cache;
  quality, appearance and volume persist as JSON in the config folder
- Bitrate cap chooses the best variant within it, or the smallest above
- Lyrics failures get a retry button
- App icon drawn by tool/make_icon.py; tool/bundle-macos.sh builds an
  ad-hoc signed Musyx.app (--install copies it to /Applications)
- Release profile: thin LTO and stripped symbols
This commit is contained in:
Yuriy Panov committed 2026-10-15 16:28:07 +06:00
1 parent e2312f2d40
commit 60156aba94
19 files changed
+1039 -94

No files matched your search

+17
View File
@@ -29,6 +29,23 @@ Sign-in uses the public OAuth client id of the official Android app (through
third-party apps. On macOS an unsigned dev build may ask for keychain access again after
each rebuild, because the keychain ties access to the binary's signature.
## Install on macOS
```sh
tool/bundle-macos.sh --install
```
This builds a release `Musyx.app` (ad-hoc signed) into `target/release/bundle/`. With
`--install`, it also copies the app to `/Applications`. The icon comes from
`crates/musyx/assets/icon/musyx.png`, which `tool/make_icon.py` draws. Each new build is a new
code identity to the keychain, so macOS asks once to allow access to the saved sign-in.
## Settings
Settings (streaming quality, appearance, volume) are kept in
`~/Library/Application Support/Musyx/settings.json`. Covers are cached under
`~/Library/Caches/Musyx/covers` and can be cleared from Settings.
## Check
```sh