Change the display name of PowerShell-LTS package to 'PowerShell LTS' by daxian-dbw · Pull Request #27203 · PowerShell/PowerShell
Conversation
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Updates MSIX packaging metadata so the PowerShell LTS package shows a friendlier display name (“PowerShell LTS”) while keeping the underlying product/package identity unchanged.
Changes:
- Change the MSIX
$displayNamesuffix for LTS builds from-LTStoLTS.
Comment on lines 4284 to +4288
| $ProductName += 'Preview' | ||
| $displayName += ' Preview' | ||
| } elseif ($LTS) { | ||
| $ProductName += '-LTS' | ||
| $displayName += '-LTS' | ||
| $displayName += ' LTS' |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-LTS is evaluated after $ProductSemanticVersion.Contains('-'), so an LTS MSIX build with any hyphenated version (e.g. rebuild/rc) will be treated as Preview and never reach the LTS branch (wrong $ProductName/$displayName). To align with the repo’s Test-IsPreview -IsLTS behavior, either check $LTS before preview detection, or replace this condition with Test-IsPreview -Version $ProductSemanticVersion -IsLTS:$LTS and keep the naming/asset selection consistent.
Copilot uses AI. Check for mistakes.