File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,13 @@ async function getLatestStableRelease() {
74
74
async function getPackageDetails (
75
75
assets : ReleaseAssets ,
76
76
body : string ,
77
- arch : string
77
+ arch : 'amd64' | 'x86' | 'arm64'
78
78
) {
79
- const archValue = arch === 'amd64' ? '64-bit' : '32-bit'
79
+ const archValue = {
80
+ amd64 : '64-bit' ,
81
+ x86 : '32-bit' ,
82
+ arm64 : 'arm64' ,
83
+ } [ arch ]
80
84
81
85
const minGitFile = assets . find (
82
86
a => a . name . indexOf ( 'MinGit' ) !== - 1 && a . name . indexOf ( archValue ) !== - 1
@@ -181,12 +185,13 @@ async function run() {
181
185
182
186
const package64bit = await getPackageDetails ( assets , body , 'amd64' )
183
187
const package32bit = await getPackageDetails ( assets , body , 'x86' )
188
+ const packagearm64 = await getPackageDetails ( assets , body , 'arm64' )
184
189
185
- if ( package64bit == null || package32bit == null ) {
190
+ if ( package64bit == null || package32bit == null || packagearm64 == null ) {
186
191
return
187
192
}
188
193
189
- updateGitDependencies ( latestGitVersion , [ package64bit , package32bit ] )
194
+ updateGitDependencies ( latestGitVersion , [ package64bit , package32bit , packagearm64 ] )
190
195
191
196
console . log (
192
197
`✅ Updated dependencies metadata to Git ${ latestGitVersion } (Git for Windows ${ version } )`
You can’t perform that action at this time.
0 commit comments