@@ -93,11 +93,18 @@ private static string config(string @default = null, [CallerMemberName] string k
93
93
{
94
94
"linux" ,
95
95
"linux-x64" ,
96
- "linux-arm64" ,
97
96
"unix" ,
98
97
"linux-musl-x64"
99
98
} ;
100
99
100
+ private static readonly string [ ] _linARMPowershellRuntimes = new [ ]
101
+ {
102
+ "linux" ,
103
+ "linux-arm" ,
104
+ "linux-arm64" ,
105
+ "unix"
106
+ } ;
107
+
101
108
private static readonly string [ ] _osxPowershellRuntimes = new [ ]
102
109
{
103
110
"osx" ,
@@ -120,7 +127,7 @@ private static Dictionary<string, string[]> GetPowerShell72Runtimes()
120
127
{ "win-x64" , _winPowershellRuntimes } ,
121
128
{ "win-arm64" , _winPowershellRuntimes } ,
122
129
{ "linux-x64" , _linPowershellRuntimes } ,
123
- { "linux-arm64" , _linPowershellRuntimes } ,
130
+ { "linux-arm64" , _linARMPowershellRuntimes } ,
124
131
{ "osx-x64" , _osxPowershellRuntimes } ,
125
132
{ "osx-arm64" , _osxARMPowershellRuntimes }
126
133
} ;
@@ -135,7 +142,7 @@ private static Dictionary<string, string[]> GetPowerShell74Runtimes()
135
142
{ "win-x64" , _winPowershellRuntimesNet8 } ,
136
143
{ "win-arm64" , _winPowershellRuntimesNet8 } ,
137
144
{ "linux-x64" , _linPowershellRuntimes } ,
138
- { "linux-arm64" , _linPowershellRuntimes } ,
145
+ { "linux-arm64" , _linARMPowershellRuntimes } ,
139
146
{ "osx-x64" , _osxPowershellRuntimes } ,
140
147
{ "osx-arm64" , _osxARMPowershellRuntimes }
141
148
} ;
@@ -153,12 +160,12 @@ private static Dictionary<string, string[]> GetPowerShell74Runtimes()
153
160
{ "win-x64" , _winPowershellRuntimes } ,
154
161
{ "win-arm64" , _winPowershellRuntimes } ,
155
162
{ "linux-x64" , _linPowershellRuntimes } ,
156
- { "linux-arm64" , _linPowershellRuntimes } ,
157
163
{ "osx-x64" , _osxPowershellRuntimes } ,
158
164
// NOTE: PowerShell 7.0 does not support arm. First version supporting it is 7.2
159
165
// https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos?view=powershell-7.2#supported-versions
160
166
// 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
161
- { "osx-arm64" , new [ ] { "osx" , "unix" } }
167
+ { "osx-arm64" , new [ ] { "osx" , "unix" } } ,
168
+ { "linux-arm64" , new [ ] { "linux" , "unix" } }
162
169
}
163
170
} ,
164
171
{
0 commit comments