Skip to content

fix(windows): preserve Authenticode signatures during packaging - #6187

Merged
ReenigneArcher merged 1 commit into
masterfrom
fix/windows-authenticode-packaging
Nov 26, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
fix/windows-authenticode-packaging

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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

  • Bash syntax and local signed/unsigned packaging simulations passed: both signed package invocations disable CPack stripping and preserve the unstripped debug inputs; the unsigned path retains the original CPack arguments.
  • A local GNU strip experiment on a PE test executable removed its synthetic certificate-table bytes. This verifies the mechanism, not the signatures in the public packages.
  • Before considering Windows AMD64 MSI contains unsigned executables blocked by Smart App Control #5903 verified, extract sunshine.exe and tools/sunshinesvc.exe from the MSI and Lite ZIP of a signed Windows AMD64 build. Check both files with Get-AuthenticodeSignature and confirm the service starts with Smart App Control enabled. No signed Windows packaging or Smart App Control test was run here.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Prepared with OpenAI’s Dot (exact model and thinking level unavailable).

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.93%. Comparing base (b7a0b68) to head (28350b6).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            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     
Flag Coverage Δ
Alpine-aarch64 35.67% <ø> (ø)
Alpine-x86_64 35.79% <ø> (ø)
Archlinux 36.52% <ø> (ø)
FreeBSD-amd64 36.21% <ø> (-0.01%) ⬇️
Homebrew-macos-15 50.00% <ø> (+<0.01%) ⬆️
Homebrew-macos-26 50.40% <ø> (-0.02%) ⬇️
Homebrew-ubuntu-24.04 38.67% <ø> (+<0.01%) ⬆️
Linux-AppImage-aarch64 41.64% <ø> (-0.01%) ⬇️
Linux-AppImage-x86_64 41.88% <ø> (?)
PowerShell 100.00% <ø> (ø)
Web-UI 58.14% <ø> (ø)
Windows-AMD64 42.53% <ø> (ø)
Windows-ARM64 36.18% <ø> (+0.07%) ⬆️
macOS-arm64 42.53% <ø> (-0.01%) ⬇️
macOS-x86_64 41.45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 35 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7a0b68...28350b6. Read the comment docs.

@github-actions

Copy link
Copy Markdown
Last Updated 2026-11-25 23:39:29 UTC
Source Run CI Run #6979
Commit 28350b6389121f2ad6fce335e09f8c1b964bfe57

Screenshot Comparison

PR #6187 screenshots vs screenshots baseline.

Matrix: AppImage-aarch64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: AppImage-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-AMD64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-ARM64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-arm64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

@ReenigneArcher
ReenigneArcher marked this pull request as ready for review November 25, 2026 23:52
@ReenigneArcher
ReenigneArcher merged commit 5fb75a3 into master Nov 26, 2026
83 checks passed
@ReenigneArcher
ReenigneArcher deleted the fix/windows-authenticode-packaging branch November 26, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows AMD64 MSI contains unsigned executables blocked by Smart App Control

1 participant