Mulberry/README.md
Jacob Ward 623ced06b7 Build scripts: Windows (PowerShell) and Linux from source
packaging/windows/build-windows.ps1 makes the portable zip and the installer;
packaging/linux/build-linux.sh makes the tarball and the AppImage. Both follow
the steps of the CI workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 01:05:23 -05:00

221 lines
17 KiB
Markdown

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div align="center">
<img src="mulberry/assets/mulberry.svg" width="112" alt="Mulberry logo">
# Mulberry
**A Material You music player for Linux and Windows.**
Strawberry's library and playlists, with an expressive, colour-matched "now playing" panel.
[![Build](https://github.com/BeamStarTech/Mulberry/actions/workflows/build.yml/badge.svg)](https://github.com/BeamStarTech/Mulberry/actions/workflows/build.yml)
[![Latest release](https://img.shields.io/github/v/release/BeamStarTech/Mulberry?label=release&color=9a7fd1)](https://github.com/BeamStarTech/Mulberry/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/BeamStarTech/Mulberry/total?color=e08ad8)](https://github.com/BeamStarTech/Mulberry/releases)
![Platforms](https://img.shields.io/badge/platforms-Linux%20%7C%20Windows-6a3fa0)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
![Mulberry, dark theme](docs/main-dark.png)
</div>
## Download
| Platform | Download | How to run |
|---|---|---|
| **Windows 10 / 11** (installer) | [**Mulberry-Windows-Setup.exe**](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Windows-Setup.exe) | Run it and follow the steps |
| **Windows** (portable) | [**Mulberry-Windows-Portable.zip**](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Windows-Portable.zip) | Unzip anywhere, then run `Mulberry.exe` |
| **Linux**, any distro (AppImage) | [**Mulberry-x86_64.AppImage**](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-x86_64.AppImage) | `chmod +x Mulberry-x86_64.AppImage && ./Mulberry-x86_64.AppImage` |
| **Linux** (tarball) | [**Mulberry-Linux-x86_64.tar.gz**](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Linux-x86_64.tar.gz) | Extract it, then run `Mulberry/mulberry` |
| **Android** 7.0+ (any CPU) | [**Mulberry-Android.apk**](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Android.apk) | Open it on your phone and allow "Install unknown apps" |
All versions are listed on the [Releases page](https://github.com/BeamStarTech/Mulberry/releases).
## Installation
### Windows
1. Download **[Mulberry-Windows-Setup.exe](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Windows-Setup.exe)** and run it.
2. The installer isn't code-signed, so Windows SmartScreen may show *"Windows protected your PC"*. Click **More info → Run anyway**.
3. Choose whether you want a desktop icon and "Open with" entries for audio files. Then launch Mulberry from the Start menu.
4. Click **Library → Add music folder** (or *Tools → Add music folder…*) and pick your music folder.
Prefer no installer? Use the **[portable zip](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Windows-Portable.zip)**: unzip it anywhere, including a USB stick, and run `Mulberry.exe`.
The Windows build includes **libmpv**, so the equalizer, gapless playback, audio CD playback and CD ripping need nothing extra. Mulberry uses your Windows **accent colour** and **light/dark mode** automatically.
### Linux
**AppImage (easiest, works on any distro):**
```bash
chmod +x Mulberry-x86_64.AppImage
./Mulberry-x86_64.AppImage
```
To get an app-menu entry, use [Gear Lever](https://flathub.org/apps/it.mijorus.gearlever) or AppImageLauncher, or install from source as described below.
**Recommended extras.** Install `mpv` for gapless playback, the EQ, ReplayGain and audio CDs, and `cdparanoia` + `ffmpeg` for the best CD rips:
| Distro | Command |
|---|---|
| Arch / CachyOS / EndeavourOS | `sudo pacman -S mpv cdparanoia ffmpeg libdiscid chromaprint` |
| Fedora | `sudo dnf install mpv-libs cdparanoia ffmpeg libdiscid chromaprint-tools` |
| Debian / Ubuntu / KDE neon | `sudo apt install libmpv2 cdparanoia ffmpeg libdiscid0 libchromaprint-tools` |
| openSUSE | `sudo zypper install mpv cdparanoia ffmpeg libdiscid0 chromaprint-fpcalc` |
Without mpv, Mulberry uses its built-in Qt/FFmpeg engine, which still plays almost everything.
On KDE Plasma the colours come from your colour scheme and accent (`~/.config/kdeglobals`) and update live. Media keys, the Plasma media widget, KDE Connect and shell widgets work through MPRIS.
### Android
Download **[Mulberry-Android.apk](https://github.com/BeamStarTech/Mulberry/releases/latest/download/Mulberry-Android.apk)** on your phone, open it, and allow your browser or file manager to install unknown apps when asked. Updates install over the old version and keep your playlists and settings.
The phone version has the same look: the spinning cookie cover with visualizer bars, the wavy progress bar, the morphing play button, synced lyrics and the floating bass shape. It also has:
- background playback with a media notification and lock-screen, headset and Bluetooth controls;
- crossfade and fades on play/pause, gapless playback and a sleep timer;
- a tag editor for MP3, M4A, AAC, FLAC, Ogg Vorbis, Opus, WMA, WAV and AIFF, with covers, lyrics and MusicBrainz lookups;
- playlist import and export (M3U/M3U8/PLS) and smart playlists;
- Last.fm scrobbling, plus support for scrobbler apps such as Pano Scrobbler and Simple Last.fm Scrobbler;
- five home-screen widgets: now playing, now playing + lyrics, a slim bar, lyrics only and a transparent bass shape;
- a low-power mode for slow phones.
CD support, the equalizer, ReplayGain and web links are desktop-only.
### From source (Linux or Windows)
Requires Python 3.10+.
```bash
git clone https://github.com/BeamStarTech/Mulberry.git
cd Mulberry
```
- **Linux:** run `./install.sh`. It creates a virtual environment, a `mulberry` command and an app-menu entry with an icon. Or just `pip install -r requirements.txt && ./run.sh`.
- Update: `git pull && ./install.sh`
- Uninstall: `./install.sh --uninstall` (keeps your library and settings), or `./install.sh --purge` (removes everything)
- When started from the app menu, output is logged to `~/.cache/mulberry/launch.log`
- **Windows:** run `py -m pip install -r requirements.txt` and then `run.bat`.
### Building the packages yourself
One script per platform builds everything from source into `dist/`:
- **Windows** (portable zip + installer; the installer needs [Inno Setup](https://jrsoftware.org/isdl.php)):
`powershell -ExecutionPolicy Bypass -File packaging\windows\build-windows.ps1`
- **Linux** (tarball + AppImage): `bash packaging/linux/build-linux.sh`
Or by hand:
```bash
pip install -r requirements.txt pyinstaller
python packaging/make_icons.py
pyinstaller packaging/mulberry.spec --noconfirm # output: dist/Mulberry/
```
The Windows installer is built with [Inno Setup](https://jrsoftware.org/isinfo.php) from `packaging/windows/mulberry.iss`. GitHub Actions ([`build.yml`](.github/workflows/build.yml)) builds every package on each push, and pushing a tag like `v1.2.0` publishes a release with all four downloads.
## Screenshots
| Light theme, compact panel | Focus mode |
|---|---|
| ![Light, compact](docs/light-compact.png) | ![Focus mode](docs/focus.png) |
| Settings | Floating bass shape |
|---|---|
| ![Settings](docs/settings.png) | ![Shape morphs](docs/shape.png) |
## Features
**Look and feel**
- Material 3 colour roles built from your system colours: the KDE accent and window colours (`~/.config/kdeglobals`) on Linux, the accent colour and light/dark mode on Windows. Change them and the player recolours instantly.
- Other colour sources: dynamic colours taken from the album art, or a custom seed colour. Light/dark either follows the system or can be forced.
- Hero panel: a cookie-shaped cover with a slow-spinning radial spectrum (decoded from the track itself and synced to the playback position, so it works with any audio engine and needs no system-audio capture), a wavy M3 Expressive progress bar, a play button that morphs shape, and a synced lyrics card where you can click a line to seek.
- Three layouts: Large, Compact bar, or Hidden (a mini transport moves to the bottom bar). F11 or clicking the cover gives a Focus mode with a big cover and lyrics.
- An optional **floating bass shape** in the bottom-left corner (Settings › Appearance, or View menu). It morphs between Material shapes on bass hits, spins, pulses in size and cycles through your theme colours. Click it to play or pause.
- The playing track gets a gradient pill, and the album art shows faintly behind the playlist. The bottom bar has a block spectrum analyzer.
**Library and playback**
- SQLite collection with an incremental background scanner (only changed files are re-read). Group by album artist, artist, genre, year or album, and search with `artist:` `album:` `genre:` `year:>2000` `rating:>3`.
- Formats: MP3, FLAC, Ogg Vorbis/Opus/Speex, AAC/ALAC/M4A, WMA, APE, WavPack, Musepack, TTA, OptimFROG, TAK, AIFF, WAV, DSF/DFF, MKA, tracker modules, MIDI and more. Cue sheets play as separate tracks.
- Tabbed playlists with undo/redo, drag and drop, column chooser, sort by column, filtering, duplicate and unavailable-file removal, and saved/pinned playlists.
- A play queue with Play next, Stop after this track, shuffle, and repeat (track or playlist).
- Smart playlists: Recently added, Most played, Recently played, Loved & top rated, Never played, Random 100, Most skipped.
- Play counts, skip counts and 0–5 star ratings.
- Playlist import: M3U, M3U8, PLS, XSPF, WPL, ASX, CUE. Export: M3U, M3U8, PLS, XSPF, WPL, with relative or absolute paths.
- **Export all playlists** (Playlist menu, Ctrl+Shift+S, or the Lists tab): pick a folder and a file type, then choose whether existing files are replaced, skipped or kept with a number added. Closed saved playlists can be included too. Playlists use full file paths by default; relative paths are optional.
- Importing finds your files even if the playlist was made on another computer or OS (different home folder, `C:\` paths, `\` vs `/`), by matching the album folder and file name against your library.
- Play **YouTube, SoundCloud, Bandcamp and other web links** (*Music › Open URL*, Ctrl+U, or the Radio tab). They're resolved with the bundled yt-dlp; title, artist, length and thumbnail are filled in, and seeking works.
- Internet radio with ICY now-playing titles. A few SomaFM, Radio Paradise and KEXP stations are included, and you can add your own.
- Output device selection, a 10-band equalizer with presets, ReplayGain (track or album, with pre-amp), and resume where you left off.
- **Crossfade** (Settings › Playback › Crossfade, 1–12 s): the end of each song blends into the next one with equal-power fades. It works with both audio engines and replaces gapless while it's on. Skipping, seeking or pausing ends the fade right away.
**Online and metadata**
- Last.fm scrobbling, now-playing updates and Love. Scrobbles are cached offline and batch-sent later.
- ListenBrainz submissions and loved-track feedback.
- Tag editor for single files or many at once, with cover embedding for MP3, FLAC, Ogg, M4A and APE/WavPack.
- MusicBrainz tag lookup, either picking a match or auto-applying it in batch, plus AcoustID fingerprinting.
- Automatic cover fetching (iTunes, Deezer, Cover Art Archive, Last.fm) and a cover manager with a grid of candidates.
- Synced lyrics. In the lyrics card's ⋮ menu you can pick the source. **Auto** always prefers synced lyrics: LRCLIB → NetEase → embedded → local `.lrc`, then the same order for plain text. Picking **LRCLIB**, **NetEase Cloud Music**, **Local .lrc files** (such as those downloaded by LRCGET) or **Embedded tags** uses only that source. You can also turn on **Show as plain text**. Click any synced line to jump there. You can also edit lyrics, nudge their timing, and switch the card to the artist bio.
**Audio CD**
- Detects drives, reads the TOC (built-in on Windows; libdiscid, cdparanoia or cd-info on Linux), looks the disc up on MusicBrainz and fetches its cover.
- Plays CD tracks. CDs always use the mpv engine (bundled on Windows), even when your main engine is Qt.
- Burned or unknown discs with no MusicBrainz match show a CD placeholder. Online cover, lyrics and artist lookups are switched off for them, so they never pull in wrong data.
- Ripper: format, quality, folder and filename pattern are configurable. It tags the files, embeds the cover and adds the result to your library. It uses cdparanoia + ffmpeg when available, otherwise libmpv's built-in encoder (which is how it works on Windows).
**Desktop integration**
- *Linux:* full MPRIS2 support, so Plasma's media controls, the lock screen, KDE Connect, media keys and shell widgets like Quickshell all see and control it. Desktop notifications with album art, and native KDE file dialogs through the XDG portal.
- *Windows:* global keyboard media keys, tray notifications, Start menu entry and "Open with" integration from the installer.
- Both: tray icon (close to tray) and single instance (opening files from your file manager adds them to the running player).
### Platform differences
| | Linux | Windows |
|---|---|---|
| Theme source | KDE colour scheme and accent, live (or the Qt palette on other desktops) | Accent colour and light/dark mode, live |
| Default engine | mpv when run from source; built-in Qt engine in the AppImage/tarball | Qt; mpv (included) can be chosen in Settings for EQ and gapless playback |
| OS media controls | MPRIS: Plasma, lock screen, KDE Connect, shells | Global media keys |
| Notifications | Desktop notifications with cover art | Tray notifications |
| CD ripping | cdparanoia + ffmpeg, or libmpv | Included libmpv |
## Last.fm setup
Open **Settings › Scrobbling** and click **Log in with Last.fm**. Your browser opens Last.fm; click *Yes, allow access*. Last.fm sends the browser back to Mulberry at `http://127.0.0.1:47823`, and you're logged in. Nothing to copy or paste.
Once logged in, Mulberry sends **Now playing** as each track starts (and again when you resume), scrobbles tracks you listen to for at least half their length or 4 minutes, and syncs **Love**. Offline scrobbles are saved and sent later. ListenBrainz works the same way with a user token.
Advanced: tick *Use my own API key* to use a personal key instead of Mulberry's built-in one.
## Keyboard shortcuts
| Keys | Action |
|---|---|
| Space | Play / pause |
| Ctrl+← / Ctrl+→ | Previous / next |
| Alt+← / Alt+→ | Seek −/+ 10 s |
| Ctrl+↑ / Ctrl+↓, Ctrl+M | Volume, mute |
| Ctrl+D | Queue / dequeue selected |
| Ctrl+J | Jump to the playing track |
| Ctrl+F | Filter the playlist |
| Ctrl+E | Edit tags |
| Ctrl+T / Ctrl+W | New / close playlist |
| Ctrl+I / Ctrl+S | Import / export playlist |
| Ctrl+Z / Ctrl+Shift+Z | Undo / redo |
| Ctrl+L | Love the current track |
| F5 / Ctrl+F5 | Update library / full rescan |
| F11 | Focus mode |
## Where your data lives
| | Linux | Windows |
|---|---|---|
| Settings | `~/.config/mulberry/mulberry.conf` | `%APPDATA%\Mulberry\mulberry.conf` |
| Library, playlists, lyrics cache | `~/.local/share/mulberry/library.db` | `%LOCALAPPDATA%\Mulberry\library.db` |
| Covers | `~/.local/share/mulberry/covers` | `%LOCALAPPDATA%\Mulberry\covers` |
| Thumbnails | `~/.cache/mulberry` | `%LOCALAPPDATA%\Mulberry\cache` |
## Troubleshooting
- **No sound, or "Playback error":** in *Settings → Playback*, try the other engine (Qt ↔ mpv) or another output device.
- **The visualizer doesn't move:** for local files it analyses the track directly, so it should always work. For internet radio and audio CDs with the mpv engine on Linux, it listens to the PipeWire/PulseAudio monitor instead.
- **"No covers found" / lyrics or Last.fm can't connect:** the cover dialog now shows the actual network error. Packaged builds include their own certificate bundle, so HTTPS works on every distro.
- **Nothing plays in the AppImage/tarball:** they use the built-in Qt engine by default. If you switched the engine to mpv in Settings, switch it back to *Automatic*.
- **No EQ or gapless option (Linux):** install `mpv` (see the table above) and restart.
- **The AppImage won't start:** some distros need `libfuse2`. Or run it with `./Mulberry-x86_64.AppImage --appimage-extract-and-run`.
- **SmartScreen blocks the Windows installer:** click *More info → Run anyway*. The build is unsigned.
## Credits
- **Coded by [Claude](https://claude.ai)**, Anthropic's AI, with design direction, ideas and testing by [@BeamStarTech](https://github.com/BeamStarTech).
- Built with [PyQt6](https://www.riverbankcomputing.com/software/pyqt/), [mutagen](https://github.com/quodlibet/mutagen), [python-mpv](https://github.com/jaseg/python-mpv)/[mpv](https://mpv.io) and [NumPy](https://numpy.org).
- Inspired by [Strawberry Music Player](https://www.strawberrymusicplayer.org) and Material 3 Expressive.
- Icons: [Material Symbols](https://fonts.google.com/icons) (Apache 2.0).
- Lyrics: [LRCLIB](https://lrclib.net), NetEase Cloud Music. Metadata and covers: [MusicBrainz](https://musicbrainz.org), [Cover Art Archive](https://coverartarchive.org), iTunes, Deezer, [Last.fm](https://www.last.fm), Wikipedia.
## License
[MIT](LICENSE)