Skip to content

Change packaging to differentiate only between major versions and previews - #6968

Merged
Travis Plunk (TravisEz13) merged 5 commits into
PowerShell:masterfrom
rjmholt:linux-package-rename
Jun 5, 2018
Merged

Change packaging to differentiate only between major versions and previews#6968
Travis Plunk (TravisEz13) merged 5 commits into
PowerShell:masterfrom
rjmholt:linux-package-rename

Conversation

@rjmholt

@rjmholt Rob Holt (rjmholt) commented May 31, 2018

Copy link
Copy Markdown
Collaborator

PR Summary

This is breaking as it changes the symbolic links used to run PowerShell from preview builds to
* Previews linked to /usr/bin/pwsh-preview on linux and /usr/local/bin/pwsh-preview on macOS

Change the *nix packaging over with the following changes:

  • Package name (as used by e.g. apt):
    • Non-preview releases are namedpowershell
    • Preview releases are named powershell-preview
  • Installation path:
    • No longer looks like /opt/microsoft/powershell/6.1.0/ or /opt/microsoft/powershell/6.1.0-preview.1/
    • Non-previews go to a path like /opt/microsoft/powershell/6/
    • Previews go to a path like /opt/microsoft/powershell/6-preview/
  • Path to executable symlink:
    • Allows SxS with preview
    • Non-previews linked to /usr/bin/pwsh or /usr/local/bin/pwsh on macOS
    • Previews linked to /usr/bin/pwsh-preview or /usr/local/bin/pwsh-preview on macOS

Implements PowerShell/PowerShell-RFC#115 (comment)

PR Checklist

@iSazonov

Copy link
Copy Markdown
Collaborator

Seems typo in PR description "Preview releases are named powershell-release" -> "◦Preview releases are named powershell-preview".

@bergmeister

Copy link
Copy Markdown
Contributor

I don't want to convolute this PR but I would like to gently remind that implementing isssue #6317 would be useful for people using previews. Personally, I mostly use only either the RTM or the daily build.

$Suffix = $packageVersion
}
# Break the version down into its components, we are interested in the major version
$VersionMatch = [regex]::Match($Version, '(\d+)(?:.(\d+)(?:.(\d+)(?:-preview(?:.(\d+))?)?)?)?')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: use PowerShell syntax

@TravisEz13 Travis Plunk (TravisEz13) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With minor comment

@TravisEz13
Travis Plunk (TravisEz13) merged commit f559acf into PowerShell:master Jun 5, 2018
@TravisEz13 Travis Plunk (TravisEz13) added WG-Maintainers-Build specific to affecting the build Breaking-Change breaking change that may affect users labels Jun 5, 2018
@rjmholt
Rob Holt (rjmholt) deleted the linux-package-rename branch June 22, 2018 22:55
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…views (PowerShell#6968)

Change the *nix packaging over with the following changes:

Package name (as used by e.g. apt):
Non-preview releases are namedpowershell
Preview releases are named powershell-preview
Installation path:
No longer looks like /opt/microsoft/powershell/6.1.0/ or /opt/microsoft/powershell/6.1.0-preview.1/
Non-previews go to a path like /opt/microsoft/powershell/6/
Previews go to a path like /opt/microsoft/powershell/6-preview/
Path to executable symlink:
Allows SxS with preview
Non-previews linked to /usr/bin/pwsh or /usr/local/bin/pwsh on macOS
Previews linked to /usr/bin/pwsh-preview or /usr/local/bin/pwsh-preview on macOS
Implements PowerShell/PowerShell-RFC#115 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking-Change breaking change that may affect users WG-Maintainers-Build specific to affecting the build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants