@@ -97,11 +97,18 @@ private static string config(string @default = null, [CallerMemberName] string k
97
97
{
98
98
"linux" ,
99
99
"linux-x64" ,
100
- "linux-arm64" ,
101
100
"unix" ,
102
101
"linux-musl-x64"
103
102
} ;
104
103
104
+ private static readonly string [ ] _linARMPowershellRuntimes = new [ ]
105
+ {
106
+ "linux" ,
107
+ "linux-arm" ,
108
+ "linux-arm64" ,
109
+ "unix"
110
+ } ;
111
+
105
112
private static readonly string [ ] _osxPowershellRuntimes = new [ ]
106
113
{
107
114
"osx" ,
@@ -124,7 +131,7 @@ private static Dictionary<string, string[]> GetPowerShell72Runtimes()
124
131
{ "win-x64" , _winPowershellRuntimes } ,
125
132
{ "win-arm64" , _winPowershellRuntimes } ,
126
133
{ "linux-x64" , _linPowershellRuntimes } ,
127
- { "linux-arm64" , _linPowershellRuntimes } ,
134
+ { "linux-arm64" , _linARMPowershellRuntimes } ,
128
135
{ "osx-x64" , _osxPowershellRuntimes } ,
129
136
{ "osx-arm64" , _osxARMPowershellRuntimes }
130
137
} ;
@@ -139,7 +146,7 @@ private static Dictionary<string, string[]> GetPowerShell74Runtimes()
139
146
{ "win-x64" , _winPowershellRuntimesNet8 } ,
140
147
{ "win-arm64" , _winPowershellRuntimesNet8 } ,
141
148
{ "linux-x64" , _linPowershellRuntimes } ,
142
- { "linux-arm64" , _linPowershellRuntimes } ,
149
+ { "linux-arm64" , _linARMPowershellRuntimes } ,
143
150
{ "osx-x64" , _osxPowershellRuntimes } ,
144
151
{ "osx-arm64" , _osxARMPowershellRuntimes }
145
152
} ;
@@ -157,12 +164,12 @@ private static Dictionary<string, string[]> GetPowerShell74Runtimes()
157
164
{ "win-x64" , _winPowershellRuntimes } ,
158
165
{ "win-arm64" , _winPowershellRuntimes } ,
159
166
{ "linux-x64" , _linPowershellRuntimes } ,
160
- { "linux-arm64" , _linPowershellRuntimes } ,
161
167
{ "osx-x64" , _osxPowershellRuntimes } ,
162
168
// NOTE: PowerShell 7.0 does not support arm. First version supporting it is 7.2
163
169
// https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.2#supported-versions
164
170
// That being said, we might as well include "osx" and "unix" since it'll hardly affect package size and should lead to more accurate error messages
165
- { "osx-arm64" , new [ ] { "osx" , "unix" } }
171
+ { "osx-arm64" , new [ ] { "osx" , "unix" } } ,
172
+ { "linux-arm64" , new [ ] { "linux" , "unix" } }
166
173
}
167
174
} ,
168
175
{
0 commit comments