Maintain signing profiles in secure store (local cert store, Azure Key Vault, hashicorp vault).
Support dual-signing (SHA-256/384) for legacy compatibility.
Integrate RFC 3161 timestamp services with retry/backoff.
Provide UI/CLI to:
Import/export PFX with role-based permissions.
Configure remote signing via Azure Key Vault/HSM connectors (shipped in current milestone).
Schedule certificate rotation alerts based on expiry.
Enforce policy rules: packaging blocked if cert expired/soon-to-expire, or timestamping fails.
3. Automation Assets
App Installer: Template engine with tokens for CDN endpoints, min version, force update flags; ability to version URIs per release channel (Stable/Beta/Insider).
WinGet:
Manifest builder that maps PackagingTools project metadata to fields (PackageIdentifier, Publisher, InstallerType, InstallModes).
Validation pipeline running winget validate and PowerShell Pester tests.
Optional GitHub PR automation for community repository submissions (create branch, commit manifests, open PR).
4. Host Integration Toggles
Provide configuration surface (GUI/CLI) for:
Start menu shortcuts, taskbar pins, desktop icons.
Generate diff preview comparing current vs desired integrations for review before packaging.
CLI support: packagingtools host previews and applies metadata changes, aligning with the Avalonia host integration editor and emitting property-level diffs.
GUI support: the Windows platform panel exposes checkboxes/text inputs for shortcuts, protocols, and file associations with a live property change preview.
5. Testing Strategy
Unit Tests: Validate manifest generation, WiX templates, configuration diff logic.
Integration Tests (Windows runners):
Build sample app packages for MSIX & MSI; install/uninstall headlessly.
Run signtool verify /pa and Get-AppPackage checks.
Validate WinGet manifest using official validator.
Current coverage: cross-platform integration tests validate WiX generation for shortcuts, protocols, and associations; smoke tests optionally exercise real WiX tooling when present on Windows agents.
End-to-End: Use Windows Server 2022/Windows 11 agents to execute packaging flows triggered by CLI, capturing logs and verifying installed app behavior.
Incorporate virtualization snapshots to ensure clean state per run.