Skip to content

[release/v7.4.16] Exclude .exe packages from publishing to GitHub#27458

Merged
daxian-dbw merged 1 commit into
PowerShell:release/v7.4.16from
adityapatwardhan:backport/release/v7.4.16/26859-b58ec3609
May 18, 2026
Merged

[release/v7.4.16] Exclude .exe packages from publishing to GitHub#27458
daxian-dbw merged 1 commit into
PowerShell:release/v7.4.16from
adityapatwardhan:backport/release/v7.4.16/26859-b58ec3609

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #26859 to release/v7.4.16

Triggered by @adityapatwardhan on behalf of @daxian-dbw

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Build and packaging scripts updated to exclude .exe files from GitHub uploads.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Validated that .exe packages are excluded from GitHub release uploads. No impact on other packaging or release processes.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

This change only affects packaging for GitHub releases and does not impact product functionality.

Copilot AI review requested due to automatic review settings May 17, 2026 16:40
@adityapatwardhan adityapatwardhan requested a review from a team as a code owner May 17, 2026 16:40
@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label May 17, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backport to release/v7.4.16 to ensure Windows Update–only .exe artifacts are not included in GitHub release uploads by removing them from the GitHubPackages staging folder before checksums and release asset publication.

Changes:

  • Remove any *.exe files from $(Pipeline.Workspace)/GitHubPackages prior to generating hashes.sha256.
  • Prevent .exe artifacts from being picked up by the GitHub release asset glob (GitHubPackages/*).

Comment on lines +40 to +43
$exefiles = Get-ChildItem -Path $Path -Filter *.exe
if ($exefiles) {
Write-Verbose -Verbose "Remove .exe packages:"
$exefiles | Remove-Item -Force -Verbose
$Path = "$(Pipeline.Workspace)/GitHubPackages"

# The .exe packages are for Windows Update only and should not be uploaded to GitHub release.
$exefiles = Get-ChildItem -Path $Path -Filter *.exe
@daxian-dbw daxian-dbw merged commit 9b23304 into PowerShell:release/v7.4.16 May 18, 2026
36 checks passed
@adityapatwardhan adityapatwardhan deleted the backport/release/v7.4.16/26859-b58ec3609 branch May 18, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants