Mulberry 1.2.0: fix packaged playback, track-synced visualizer, Last.fm login

- Packaged builds: keep Qt6Quick/Qml (the FFmpeg media plugin links them);
  pruning them disabled all playback in the AppImage/tarball
- Visualizer decodes each track ahead (QAudioDecoder) and follows the playback
  position: works with mpv and Qt, no PipeWire monitor needed for local files
- Packaged Linux builds default to the self-contained Qt engine
- Last.fm: built-in app key, browser login returns to a 127.0.0.1 callback;
  now-playing is re-sent on resume
- Export all playlists (folder, file type, replace/skip/number)
- Unknown/burned CDs: CD placeholder art, no online lookups
- install.sh: --uninstall, --purge, requirement checks, launch log
- CI self-tests now play a file and assert decoding + visualizer output

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01J7imThHV9BMkG24GaxPDeq
This commit is contained in:
Claude 2026-10-10 00:04:21 -05:00
commit 2cc0338156
No known key found for this signature in database

View file

@ -46,11 +46,17 @@ jobs:
- name: Self-test (launch the built app, screenshot, quit)
shell: pwsh
run: |
python packaging/make_test_audio.py selftest.wav
$env:MULBERRY_SELFTEST = "$PWD\selftest-windows"
$env:MULBERRY_SELFTEST_PLAY = "$PWD\selftest.wav"
$p = Start-Process build/dist/Mulberry/Mulberry.exe -PassThru
if (-not $p.WaitForExit(90000)) { Stop-Process $p.Id; throw "Mulberry did not finish the self-test" }
if (-not (Test-Path selftest-windows.png)) { Write-Output "::error title=Windows self-test::no screenshot"; throw "no screenshot - the app failed to start" }
$r = @{}; Get-Content selftest-windows.txt | ForEach-Object { $k, $v = $_ -split '=', 2; $r[$k] = $v }
Get-Content selftest-windows.txt
if ([double]$r['visualizer_decoded_s'] -lt 5) { Write-Output "::error title=Windows self-test::audio decoding failed ($($r['visualizer_decoded_s']) s)"; exit 1 }
if ([double]$r['visualizer_peak'] -lt 0.05) { Write-Output "::error title=Windows self-test::visualizer silent"; exit 1 }
if ([double]$r['position'] -lt 1) { Write-Output "::warning title=Windows self-test::playback position did not advance (runner has no audio device?) state=$($r['state'])" }
- uses: actions/upload-artifact@v4
with:
name: selftest-windows
@ -93,13 +99,19 @@ jobs:
- name: Self-test (launch the built app, screenshot, quit)
run: |
set +e
QT_QPA_PLATFORM=offscreen MULBERRY_SELFTEST=$PWD/selftest-linux timeout 90 dbus-run-session -- build/dist/Mulberry/mulberry > selftest-linux.log 2>&1
python packaging/make_test_audio.py selftest.wav
QT_QPA_PLATFORM=offscreen MULBERRY_SELFTEST=$PWD/selftest-linux MULBERRY_SELFTEST_PLAY=$PWD/selftest.wav \
timeout 90 dbus-run-session -- build/dist/Mulberry/mulberry > selftest-linux.log 2>&1
rc=$?
if [ ! -f selftest-linux.png ]; then
echo "::error title=Linux self-test failed (rc=$rc)::$(tail -c 3000 selftest-linux.log | tr '\n' '|')"
exit 1
fi
cat selftest-linux.txt
get() { grep "^$1=" selftest-linux.txt | cut -d= -f2; }
awk "BEGIN{exit !($(get visualizer_decoded_s) >= 5)}" || { echo "::error title=Linux self-test::audio decoding failed::$(grep -i 'multimedia\|ffmpeg\|Failed' selftest-linux.log | head -5 | tr '\n' '|')"; exit 1; }
awk "BEGIN{exit !($(get visualizer_peak) >= 0.05)}" || { echo "::error title=Linux self-test::visualizer silent"; exit 1; }
awk "BEGIN{exit !($(get position) >= 1)}" || echo "::warning title=Linux self-test::playback position did not advance (state=$(get state))"
- uses: actions/upload-artifact@v4
with:
name: selftest-linux