@@ -20,14 +20,14 @@ function isVersionAtLeast(version: string, targetVersion: string): boolean {
2020 // Remove any milestone/RC suffix (e.g., "2.1.25-M19" -> "2.1.25")
2121 const baseVersion = version . split ( '-' ) [ 0 ]
2222 const baseTargetVersion = targetVersion . split ( '-' ) [ 0 ]
23-
23+
2424 const parts = baseVersion . split ( '.' ) . map ( Number )
2525 const targetParts = baseTargetVersion . split ( '.' ) . map ( Number )
26-
26+
2727 const major = parts [ 0 ] || 0
2828 const minor = parts [ 1 ] || 0
2929 const patch = parts [ 2 ] || 0
30-
30+
3131 const targetMajor = targetParts [ 0 ] || 0
3232 const targetMinor = targetParts [ 1 ] || 0
3333 const targetPatch = targetParts [ 2 ] || 0
@@ -39,12 +39,11 @@ function isVersionAtLeast(version: string, targetVersion: string): boolean {
3939 return patch >= targetPatch
4040}
4141
42- const coursierBinariesGithubRepository =
43- isVersionAtLeast ( csVersion , '2.1.25' )
42+ const coursierBinariesGithubRepository = isVersionAtLeast ( csVersion , '2.1.25' )
43+ ? 'https://github.com/coursier/coursier/'
44+ : architecture === architecture_x86_64
4445 ? 'https://github.com/coursier/coursier/'
45- : architecture === architecture_x86_64
46- ? 'https://github.com/coursier/coursier/'
47- : 'https://github.com/VirtusLab/coursier-m1/'
46+ : 'https://github.com/VirtusLab/coursier-m1/'
4847
4948function getArchitecture ( ) : string {
5049 if ( process . arch === 'x64' ) {
0 commit comments