Skip to content

Specify 'linux-arm64' runtime if package type is 'deb-arm64' in packaging.psm1#27401

Merged
daxian-dbw merged 1 commit into
PowerShell:masterfrom
anamnavi:fix-debarm-packaging
May 6, 2026
Merged

Specify 'linux-arm64' runtime if package type is 'deb-arm64' in packaging.psm1#27401
daxian-dbw merged 1 commit into
PowerShell:masterfrom
anamnavi:fix-debarm-packaging

Conversation

@anamnavi
Copy link
Copy Markdown
Member

@anamnavi anamnavi commented May 6, 2026

PR Summary

Add condition to specify Runtime as linux-arm64 for New-PSOptions call, if PackageType is deb-arm64. Without this, the runtime gets set as the default linux-x64 runtime which causes packaging to fail for debian arm64.

Packaging improvements:

  • Added handling for the deb-arm64 package type in the Start-PSPackage function, enabling the creation of ARM64 Debian packages by specifying the linux-arm64 runtime.

PR Context

PR Checklist

Packaging improvements:

  • Added a conditional branch in the Start-PSPackage function within packaging.psm1 to support the deb-arm64 package type, configuring it to use the linux-arm64 runtime in Release mode.

Copilot AI review requested due to automatic review settings May 6, 2026 16:34
@anamnavi anamnavi requested review from a team and jshigetomi as code owners May 6, 2026 16:34
@anamnavi anamnavi added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label May 6, 2026
@daxian-dbw
Copy link
Copy Markdown
Member

@anamnavi Can you please update the PR description to include what issue this is fixing?

@anamnavi anamnavi changed the title Add condition for Deb-arm64 type package in packaging.psm1 Specify 'linux-arm64' runtime if package type is 'deb-arm64' in packaging.psm1 May 6, 2026
@daxian-dbw daxian-dbw merged commit 87ff80b into PowerShell:master May 6, 2026
46 of 48 checks passed
@daxian-dbw
Copy link
Copy Markdown
Member

The team's decided that we are not backporting arm64 package related PRs to 7.4 and 7.5.

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.6.x-Done 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.

3 participants