TASK 48 slice 2: the app packs as a Microsoft Store MSIX
The manifest the Store route needs, and a real package built from it. Packaging/Package.appxmanifest is a full-trust packagedClassicApp: EntryPoint Windows.FullTrustApplication, uap10:TrustLevel=mediumIL, uap10:RuntimeBehavior=packagedClassicApp, the rescap runFullTrust capability, and webcam + microphone DeviceCapabilities. That combination is what lets the packaged app launch the bundled ffmpeg as a child process and write to the user's profile; an appContainer package would virtualise the recordings folder instead. x64 only, en-US only (policy 10.7). Packaging/Assets/ carries the four tiles the packer requires, generated from the app's own Assets/llamacasty-logo.jpg by scripts/make-store-logos.py - listing art and app art cannot drift. scripts/package-msix.sh publishes Release win-x64 self-contained into artifacts/msix-stage (a RID-less publish would copy every RID's ONNX native), stages the manifest as AppxManifest.xml + Assets, and runs the Windows SDK's makeappx. MSIX_PFX/MSIX_PFX_PASSWORD sign a package for a local test install; the Store signs submissions. artifacts/ is gitignored. First real package: artifacts/LlamaCasty.msix, 159 MB, 509 files, 'Package creation succeeded'. Schema traps found by packing (makeappx reports one error at a time): Square310x310Logo and Wide310x150Logo are NOT uap:VisualElements attributes - they live on uap:DefaultTile. Guard: StorePackagingTests.The_package_manifest_declares_full_trust_camera_and_ microphone - identity/architecture, the full-trust application element, the three capabilities, no appContainer VALUE (not the file text: the manifest's own comment says the word), en-US only, and every referenced logo present. Full suite 438/438, 0 warnings. Cold-start smoke test after the Velopack removal: MainWindow loaded, no exceptions.
This commit is contained in:
@@ -140,24 +140,44 @@ executes** — its teardown (item 3) is a compliance action, not just cleanup.
|
||||
|
||||
---
|
||||
|
||||
## 2. ☐ `Package.appxmanifest` — full trust, camera, microphone
|
||||
## 2. ✅ `Package.appxmanifest` — full trust, camera, microphone (DONE 2026-10-22)
|
||||
|
||||
There is currently **no `.manifest` file in the repo at all**, so this is purely additive.
|
||||
There was **no `.manifest` file in the repo at all**, so this was purely additive.
|
||||
|
||||
**Shipped:** `Packaging/Package.appxmanifest` + `Packaging/Assets/` (the four logo tiles) +
|
||||
`scripts/package-msix.sh` (publish → stage → `makeappx pack`, optional `signtool` via
|
||||
`MSIX_PFX`). The first real package was built on 2026-10-22: **`Package creation succeeded`,
|
||||
159 MB, 509 files** in `artifacts/LlamaCasty.msix` (gitignored). The logos are generated from
|
||||
the app's own artwork by `scripts/make-store-logos.py`, so listing art and app art cannot drift.
|
||||
|
||||
- `rescap:Capability Name="runFullTrust"` — medium integrity, not AppContainer
|
||||
- `webcam` and `microphone` capabilities
|
||||
- `uap10:TrustLevel="mediumIL"` and `uap10:RuntimeBehavior="packagedClassicApp"` — the
|
||||
latter is what allows launching package executables as child processes
|
||||
- Declare **English only** (10.7 — otherwise the description must be localized into every
|
||||
declared language)
|
||||
- Block map SHA2-256, `StoreManifest`, under the 25 GB cap
|
||||
- **x64 only** (64-bit requirement, creator ruling 2026-10-09 — `PlatformTarget=x64` already in
|
||||
both csproj files): package architecture `x64`, publish with `-r win-x64` so only the win-x64
|
||||
native folders ship (an RID-less build copies every RID's ONNX Runtime native, ~17 MB each).
|
||||
Store listing system requirements: "64-bit Windows 10 or 11".
|
||||
- `DeviceCapability` **webcam** and **microphone**
|
||||
- `uap10:TrustLevel="mediumIL"` and `uap10:RuntimeBehavior="packagedClassicApp"` on
|
||||
`<Application>` — the latter is what allows launching package executables (the bundled
|
||||
ffmpeg) as child processes
|
||||
- **English only** (`<Resource Language="en-US"/>`) — 10.7: otherwise the description must be
|
||||
localized into every declared language
|
||||
- Block map SHA2-256 is generated by `makeappx`; no `StoreManifest` is needed for a plain
|
||||
MSIX submission; 159 MB is far under the 25 GB cap
|
||||
- **x64 only** (creator ruling 2026-10-09 — `PlatformTarget=x64` already in both csproj files):
|
||||
`ProcessorArchitecture="x64"`, published `-r win-x64 --self-contained` so only the win-x64
|
||||
native folders ship (an RID-less build copies every RID's ONNX Runtime native, ~17 MB each)
|
||||
and the package carries its own .NET runtime. Store listing system requirements:
|
||||
"64-bit Windows 10 or 11".
|
||||
|
||||
**Do NOT use `appContainer`** — see the invariant in item 6.
|
||||
|
||||
**Schema gotchas found the hard way** (the packer rejects the manifest, one error at a time):
|
||||
`Square310x310Logo` and `Wide310x150Logo` are **NOT** attributes of `uap:VisualElements` in the
|
||||
Windows 10 schema — they belong on `<uap:DefaultTile>`, a child of `VisualElements`. And
|
||||
`Assert.DoesNotContain("appContainer", manifest.ToString())` fails on the manifest's own
|
||||
comment: guard the **attribute values**, not the file text.
|
||||
|
||||
**Guard:** `ytLive.Tests/StorePackagingTests.The_package_manifest_declares_full_trust_camera_and_microphone`
|
||||
— identity (x64), full-trust application element, the three capabilities, no `appContainer`
|
||||
value, en-US only, and every referenced logo exists in `Packaging/` (makeappx refuses to pack
|
||||
otherwise).
|
||||
|
||||
## 3. ✅ Remove Velopack — 3 edit sites (DONE 2026-10-22)
|
||||
|
||||
The Store handles updates, so this is simply **deleted**. Trivially removable; the code was
|
||||
|
||||
Reference in New Issue
Block a user