Repository navigation
fix(windows): preserve Authenticode signatures during packaging - #6187
Merged
Merged
Conversation
Bundle ReportBundle size has no change ✅ |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6187 +/- ##
=========================================
Coverage 51.93% 51.93%
=========================================
Files 150 150
Lines 32863 32863
Branches 13860 13862 +2
=========================================
+ Hits 17067 17068 +1
- Misses 12259 13725 +1466
+ Partials 3537 2070 -1467
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
|
Screenshot ComparisonPR #6187 screenshots vs Matrix:
|
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.
















































































Description
The AMD64 release workflow signs executables before CPack, but CPack strips installed targets during packaging. That can remove the Authenticode certificate bytes even though the outer MSI is signed afterward.
For builds that sign the Windows executables, strip them before signing and disable CPack stripping for both WiX and ZIP. Restore the original unstripped files after packaging for tests and the separate debug archive. Unsigned builds, ARM64, installer signing, and non-Windows packaging keep their existing behavior.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Testing
stripexperiment on a PE test executable removed its synthetic certificate-table bytes. This verifies the mechanism, not the signatures in the public packages.sunshine.exeandtools/sunshinesvc.exefrom the MSI and Lite ZIP of a signed Windows AMD64 build. Check both files withGet-AuthenticodeSignatureand confirm the service starts with Smart App Control enabled. No signed Windows packaging or Smart App Control test was run here.Type of Change
Checklist
AI Usage
See our AI usage policy.