Skip to content

Commit 8b9ddf2

Browse files
Update dist (#979)
Co-authored-by: GitHub <[email protected]>
1 parent 12c4a76 commit 8b9ddf2

File tree

3 files changed

+36
-15
lines changed

3 files changed

+36
-15
lines changed

dist/index.js

Lines changed: 28 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4948
function getArchitecture(): string {
5049
if (process.arch === 'x64') {

0 commit comments

Comments
 (0)