Skip to content

Commit 8c06428

Browse files
committed
release-git: rank ARM64 higher than 32-bit
The SHA-256 checksums of the Git for Windows release artifacts are listed at the bottom of Git for Windows' announcement emails. Certain of those artifacts are deemed more important than others and are hence listed first. For example, x86_64 is nowadays considered much more important than i686 (which is deprecated, after all). To present the artifacts in such an order, the `artifactName2Rank()` function hard-codes CPU architecture rankings. When ARM64 artifacts were included, this ranking was not adjusted, and as a consequence ARM64 ranked way on the bottom. However, ARM64 is the future (or will be, once GitHub comes through with the promise of hosted runners) because of battery life, performance potentials, etc, and it should therefore outrank i686. Let's make it so! Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 4be6390 commit 8c06428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github-release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const ranked = artifacts
9292
const artifactName2Rank = (name) => {
9393
let rank = ranked.indexOf(name
9494
.replace(/-\d+(\.\d+)*(-rc\d+)?/, '')
95-
.replace(/-(32|64)-bit/, '')
96-
) + (name.indexOf('-64-bit') > 0 ? 0.5 : 0)
95+
.replace(/-((32|64)-bit|arm64)/, '')
96+
) + (name.indexOf('-64-bit') > 0 ? 0.5 : (name.indexOf('-arm64') > 0 ? 0.3 : 0))
9797
return rank
9898
}
9999

0 commit comments

Comments
 (0)