mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
[release/v7.6] Correct the package name for .deb and .rpm packages (#26884)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
co-authored by
Copilot
Travis Plunk
parent
9a42b9152f
commit
0a88d498fd
@@ -54,6 +54,7 @@ jobs:
|
||||
outputs:
|
||||
source: ${{ steps.filter.outputs.source }}
|
||||
buildModuleChanged: ${{ steps.filter.outputs.buildModuleChanged }}
|
||||
packagingChanged: ${{ steps.filter.outputs.packagingChanged }}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -161,7 +162,7 @@ jobs:
|
||||
name: macOS packaging and testing
|
||||
needs:
|
||||
- changes
|
||||
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }}
|
||||
if: ${{ needs.changes.outputs.packagingChanged == 'true' }}
|
||||
runs-on:
|
||||
- macos-15-large
|
||||
steps:
|
||||
|
||||
@@ -1159,12 +1159,16 @@ function New-UnixPackage {
|
||||
}
|
||||
|
||||
# Determine if the version is a preview version
|
||||
# Only LTS packages get a prefix in the name
|
||||
# Preview versions are identified by the version string itself (e.g., 7.6.0-preview.6)
|
||||
# Rebuild versions are also identified by the version string (e.g., 7.4.13-rebuild.5)
|
||||
$IsPreview = Test-IsPreview -Version $Version -IsLTS:$LTS
|
||||
|
||||
# For deb/rpm packages, use the '-lts' and '-preview' channel suffix variants to match existing names on packages.microsoft.com.
|
||||
# For osxpkg package, only LTS packages get a channel suffix in the name.
|
||||
$Name = if($LTS) {
|
||||
"powershell-lts"
|
||||
}
|
||||
elseif ($IsPreview -and $Type -ne "osxpkg") {
|
||||
"powershell-preview"
|
||||
}
|
||||
else {
|
||||
"powershell"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user