windows-direct-distributionlisted
Install: claude install-skill yybd/app-factory
# Direct distribution + auto-updates for a Windows app
Give a Windows app what `macos-direct-distribution` gives a Mac one: a download
from your own server that updates itself. The updater is **WinSparkle**, which
reads the Sparkle appcast format and verifies the same EdDSA signature — so a Tauri
app that already ships on the Mac with Sparkle keeps **one** signing key for both.
Three things carry the weight, and each has a reason in
[references/winsparkle.md](references/winsparkle.md):
1. **The DLL is loaded at runtime and fails open.** A missing updater must never
stop the app from starting.
2. **Windows has its own feed** (`<releases>/windows/appcast.xml`). A Mac release
that regenerates `appcast.xml` would otherwise wipe the Windows item silently.
3. **The enclosure points at the versioned installer**, never the stable download
link, so the signature always describes the bytes behind the URL.
## Prerequisites
- **Tools:** a Tauri 2 app with an NSIS Windows build (CI on `windows-latest`, or
cross-compiled on the Mac with `windows-local-build`; no Windows machine is needed
to build). On the Mac: Sparkle's
`sign_update` (in the `bin/` of a Sparkle release, or under DerivedData after an
Xcode project resolved the package), `curl`, `unzip`, `shasum`.
- **Credentials:** the Sparkle EdDSA key pair. An app with a Mac Sparkle build
already has one — reuse it, as either the exported key file or its login-Keychain
account. An app without one generates it onc