Skip to main content
Sonic

Protocol & Development

Architecture, Building & Releases

Solution structure, legacy Windows 8.1 / Phone 8.1 SDK prerequisites, automated CLR regression checks, and the signed release workflow.

Solution Structure (Mixdrome.sln)

Project Target Responsibility
Client/Mixdrome.csproj Windows 8.1 Store XAML Desktop panorama hub, collection walls, Settings flyout, MediaElement playback
Client.Phone/Mixdrome.Phone.csproj Windows Phone 8.1 WinRT XAML Single-handed phone home, Play Me / Create a Mix, offline mixes, now playing
Client.Phone.BackgroundAudioTask Windows Phone 8.1 Background Agent Out-of-process audio playback and SystemMediaTransportControls integration
Client.Common/ & Common/ Portable Class Libraries Subsonic/OpenSubsonic HTTP client, queue manager, offline storage, scrobbling, models

Prerequisites

Building full .appx release packages on Windows requires the legacy toolset:

  • Visual Studio 2015 / MSBuild 14.0
  • Windows 8.1 SDK and Windows Phone 8.1 SDK
  • Microsoft Player Framework 2.0
  • NuGet (Caliburn.Micro.Core 3.2.0 and solution dependencies)
  • PowerShell 7 and Python 3.13+ for CI and release tooling

Running Automated Regressions

Hosted CI runs production-source CLR tests on Windows and Python/audit checks on Linux without requiring a legacy AppX build:

# 1. Restore Caliburn.Micro.Core 3.2.0 if needed
nuget install Caliburn.Micro.Core -Version 3.2.0 -OutputDirectory packages -Source https://api.nuget.org/v3/index.json -NonInteractive

# 2. Run all 14 Desktop & Phone CLR regression suites
pwsh -ExecutionPolicy Bypass -File ./tools/ci/run-desktop.ps1

# 3. Run Python source, Phone audit, Navidrome mapping & release tooling checks
python tools/ci/check.py

When a clean checkout matching tools/navidrome/source-lock.json is already present under .tmp/navidrome, pass --source .tmp/navidrome to tools/ci/check.py to skip cloning.

Signed Release Pipeline (docs/releasing.md)

  1. Update desktop and phone Package.appxmanifest versions to a matching four-part version (Major.Minor.Build.Revision) and merge to main via PR.
  2. Build and sign using your code-signing certificate in Cert:\CurrentUser\My (never checked-in temporary .pfx keys):
./tools/release/build.ps1 -CertificateThumbprint '<THUMBPRINT>' -Architecture AnyCPU
  1. Publish a draft and trigger .github/workflows/release.yml via tools/release/publish-draft.ps1, which verifies tag immutability, CI success on main, manifest SHA-256 sums, certificate pinning against RELEASE_CERTIFICATE_SHA256, and SignTool integrity before publishing.