Commit 85329f8
🩹 [Patch]: Add support for Linux ARM64 architecture (#35)
This pull request adds support for the Linux ARM64 architecture to the
PowerShell module, ensuring compatibility with a wider range of Linux
systems. The changes include updates to both the build process and
runtime module loading logic.
**Platform support improvements:**
* Added `linux-arm64` to the `$targetRuntimes` array in
`PSModule/build.ps1` to ensure the ARM64 runtime is built and included.
**Runtime detection and module loading:**
* Updated `src/main.ps1` to detect the Linux architecture at runtime
using `uname -m`, and conditionally load the appropriate native module
(`PSModule.Sodium.dll`) for either ARM64 (`aarch64`) or x64 (`x86_64`).
Throws a clear error for unsupported architectures.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: Marius Storhaug <marstor@hotmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 7d1f1b9 commit 85329f8
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
0 commit comments