Repository navigation
Add native WinGet preindexed repository publishers in Rust and C# - #59
Merged
Marc-André Moreau (mamoreau-devolutions) merged 8 commits intoNov 1, 2026
Merged
Marc-André Moreau (mamoreau-devolutions) merged 8 commits into
Marc-André Moreau (mamoreau-devolutions) merged 8 commits into
Conversation
Provide reusable publishers, matching repository commands, immutable snapshots and signed static publication. Harden manifest merging, byte-level parity, state validation and rollback behavior after review. Co-authored-by: Copilot App <[email protected]>
Marc-André Moreau (mamoreau-devolutions)
requested review from
a team and
Gabriel Dufresne (GabrielDuf)
as code owners
October 31, 2026 18:04
Use a controlled MSIX identity mismatch to exercise post-copy rollback, assert an empty destination and unchanged publication state, then verify a successful retry. Document remaining Rust and signed-client acceptance limits. Co-authored-by: Copilot App <[email protected]>
…ailability Inject a deterministic private post-copy failure to prove complete cleanup and successful retry, without changing verification ordering or public API. Gate the Windows-only lock test and migrate retiring macOS 14 release runners to macOS 15 with unchanged targets. Co-authored-by: Copilot App <[email protected]>
Use runner-local short-lived signing and TLS certificates, isolated source names and verified cleanup without Sandbox or repository secrets. Provision PyYAML for independent conformance and migrate CLI packaging off retired macOS 14 runners. Co-authored-by: Copilot App <[email protected]>
Keep inventory diff, manifest validation and state/path checks active on non-Windows hosts, add an explicit native-compression capability regression, and gate tests needing Windows MSZIP generation. Verify both Windows and Ubuntu WSL suites. Co-authored-by: Copilot App <[email protected]>
Hosted runners can ship an App Installer package whose version differs from its winget executable. Capture and validate the actual CLI version separately while retaining the package version check. Co-authored-by: Copilot App <[email protected]>
Document successful stock WinGet 1.11.510 interoperability for both publishers and report the CLI version separately from App Installer in the gate summary. Co-authored-by: Copilot App <[email protected]>
Preserve independent native SQLite and MSZIP validation, fixture generation and exact cross-language artifact comparison using existing build dependencies. Remove Python and PyYAML provisioning from CI. Co-authored-by: Copilot App <[email protected]>
Marc-André Moreau (mamoreau-devolutions)
merged commit Nov 1, 2026
0757005
into
master
14 checks passed
Marc-André Moreau (mamoreau-devolutions)
deleted the
copilot/it-deployment-feeds
branch
November 1, 2026 14:58
Marc-André Moreau (mamoreau-devolutions)
added a commit
that referenced
this pull request
Nov 3, 2026
…tool (#60) ## Summary Follow-up to #59. The WinGet source publishers no longer need the Windows SDK (`makeappx.exe`, `signtool.exe`) or, in Rust, PowerShell. - **Packaging:** both publishers write `source2.msix` in-process, in the exact AppxPackaging (makeappx) ZIP layout: - stored entries; - central directory entries with version-made-by 45 and zero external attributes; - ZIP64 end records; - an SHA-256 block map with a hash per 64 KiB block; - content types. Windows AppxSip rejects signatures over any other layout with `TRUST_E_BAD_DIGEST`. The Rust (`msix.rs`) and .NET (`MsixPackageWriter.cs`) writers are byte-identical for the same payload, and a .NET test pins hashes produced by the Rust writer. - **Signing:** done with the cross-platform [psign-tool](https://github.com/Devolutions/psign) (`Devolutions.Psign.Tool`, **0.8.2 or later**; 0.8.1's portable MSIX signatures fail Windows verification, fixed in Devolutions/psign#46). - All arguments, including the PFX password, go through a private, short-lived response file, so the password never appears on a command line. That matters on Linux, where `/proc/*/cmdline` is readable by other users, and for the `.cmd` launcher `dotnet tool install` creates on Windows. - **Verification**, after signing and in `verify --destination`: - the package digests; - the signer subject matches `--publisher`, formatted the way Windows formats certificate subjects; - the signer has the Code Signing EKU and is currently valid; - chain trust: the Windows store on Windows (as `signtool verify /pa` did), or new repeatable `--trusted-ca` anchors. - **CLI:** `--makeappx`/`--signtool` become `--psign-tool`; `doctor` JSON reports `psignToolPath`. - **Portability:** `publish` and `verify` now run off Windows, using the existing portable MSZIP decoders. `build` still compresses with the Windows Compression API. - **CI, scripts and docs:** - CI installs psign-tool 0.8.2. - The gate scripts take `-PsignToolPath`. - The interoperability check no longer needs makeappx. - Docs are updated. ## Validation (local, Windows 11, SDK 10.0.26100) - **Rust:** publisher tests pass (19 unit + 26 conformance), as do the CLI tests; `clippy` and `fmt` are clean. - **.NET:** the solution builds; 80/80 publisher tests pass. - **Interop:** `tests/publisher/run-production-conformance.ps1` passes: Rust and .NET reopen each other's state and verify each other's unsigned feeds. - **Signed end to end** with released psign-tool 0.8.2, both CLIs, via the plain exe and the dotnet-tool `.cmd` launcher, with a password containing quotes, `@` and `%PATH%`: - `signtool verify /pa` and `Get-AuthenticodeSignature` report only the untrusted throwaway root, never a bad digest; - `--trusted-ca` publish and verify succeed; - a mismatched `--publisher` is rejected; - `makeappx unpack` accepts both signed and unsigned output. - **Not yet run:** the signed stock-WinGet acceptance job, which runs in CI on this PR. Note that NuGet had not yet listed the 0.8.2 platform packages (`Devolutions.Psign.Tool.win-x64`, …) shortly after the release. If they're still missing, the job's install step will fail until NuGet finishes indexing. ## Notes - The full Rust and .NET `source2.msix` still differ, because their manifest text and generated logos differ (unchanged from before). Only the container layout is identical. - `tests/publisher/build_v2_fixture.ps1` still uses makeappx on purpose. It's a manual, independent reference-fixture builder, and nothing calls it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Marc-André Moreau (mamoreau-devolutions)
pushed a commit
that referenced
this pull request
Nov 5, 2026
## 🤖 New release * `pinget-core`: 0.14.0 -> 0.14.1 (✓ API compatible changes) * `pinget-publisher`: 0.14.0 <details><summary><i><b>Changelog</b></i></summary><p> ## `pinget-core` <blockquote> ## [0.14.1](pinget-core-v0.14.0...pinget-core-v0.14.1) - 2026-11-05 ### Other - Support machine scope for zip and portable installers ([#61](#61)) - Replace makeappx and signtool with in-process MSIX writing and psign-tool ([#60](#60)) - Add native WinGet preindexed repository publishers in Rust and C# ([#59](#59)) - Fixes uninstall dispatch for EXE/Burn ARP entries whose registry subkey is GUID-shaped. ([#57](#57)) </blockquote> ## `pinget-publisher` <blockquote> ## [0.14.0](https://github.com/Devolutions/pinget/releases/tag/pinget-publisher-v0.14.0) - 2026-11-05 ### Other - Replace makeappx and signtool with in-process MSIX writing and psign-tool ([#60](#60)) - Add native WinGet preindexed repository publishers in Rust and C# ([#59](#59)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pinget repository build|diff|status|verify|publish|doctorcommands, independent of ordinary client/source initialization.source2.msixlast.macos-15runners with unchanged architecture targets.Validation — all checks green
363e187: CI and CLI NuGet Packages. Includes Rust lint/build/tests, .NET/PowerShell tests, all six Rust CLI targets, both Windows NativeAOT targets, pack/smoke and signed stock-client acceptance.initial_publish_post_copy_failure_cleans_destination_and_allows_retryproves actual copied hashes before injected failure, complete cleanup, unchanged publication state, preserved snapshot and a successful normal retry. The public API and verification ordering remain unchanged.Publish_InitialPostCopyMsixVerificationFailure_CleansArtifactsAndAllowsRetryuses real MakeAppx behind a test-only identity-mutating wrapper to prove post-copy failure cleanup and successful retry.Scope limits