Implement scoped archive installs across platforms#30
Merged
Marc-André Moreau (mamoreau-devolutions) merged 2 commits intomasterfrom Mar 31, 2026
Merged
Conversation
- unify install, update, uninstall, and list around cross-platform user and machine scopes - add self-managed Unix all-users archive installs with shared alias bins and ambiguity-aware routing - scope unsupported MSI-only archive options out of the Windows flow and keep Windows aliases exe-only - add cross-platform smoke tests for scoped installs and update docs and demos Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
989c357 to
9fb55c2
Compare
4923e31
into
master
14 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
install,update,uninstall, andlistaround cross-platform--scope <user|machine>behavior.exe-only aliasesSample commands
--enable-psremotingis a Windows archive-install option; on macOS/Linux the scoped surface is intentionally narrower.Machine-scoped install model
Machine-scoped installs remain self-managed by
multi-pwsh: they use PowerShell archives, not MSI/Homebrew/apt/rpm/snap delegation. Each scope gets one stable alias/bin directory, soPATHonly needs one entry per scope while exact versions remain side-by-side under the install root.Windows
C:\Program Files\PowerShellC:\Program Files\PowerShell\7.4.14,C:\Program Files\PowerShell\7.5.5, ...C:\Program Files\PowerShell\binpwsh-7.exe,pwsh-7.4.exe,pwsh-7.4.14.exemacOS
/usr/local/microsoft/powershell/usr/local/microsoft/powershell/7.4.14,/usr/local/microsoft/powershell/7.5.5, .../usr/local/bin.tar.gzarchivesmulti-pwshdoes not invokesudoLinux
/opt/microsoft/powershell/opt/microsoft/powershell/7.4.14,/opt/microsoft/powershell/7.5.5, .../usr/local/bin.tar.gzarchivesmulti-pwshdoes not invokesudoBehavior notes
userremains the default when--scopeis omittedlist --scope allspans both scopes--scopeto disambiguatecurrent-userandall-usersare still accepted for compatibility, but the primary CLI surface is nowuser/machineVerification
cargo fmt --all --checkcargo clippy --workspace --all-targetscargo build --all-targetscargo test --all-targetsdotnet build dotnet/bindings/Devolutions.PowerShell.SDK.Bindings.csprojdotnet test dotnet/bindings/Devolutions.PowerShell.SDK.Bindings.csproj --no-buildCISmoke tests