Skip to content

Commit 428c34a

Browse files
committed
Merge branch 'master' into v1
2 parents 908d869 + 8ce6642 commit 428c34a

File tree

3 files changed

+366
-306
lines changed

3 files changed

+366
-306
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const ChildProcess = require("child_process");
1010
const Util = require("util");
1111
const FS = require("fs").promises;
1212

13+
const {cmpTags} = require("tag-cmp");
1314
const exec = Util.promisify(ChildProcess.exec);
1415
const execFile = Util.promisify(ChildProcess.execFile);
1516

@@ -125,7 +126,7 @@ async function installCrystalForLinux({crystal, shards, arch = getArch(), path})
125126

126127
async function installCrystalForMac({crystal, shards, arch = "x86_64", path}) {
127128
checkVersion(crystal, [Latest, Nightly, NumericVersion]);
128-
if (crystal === Nightly) {
129+
if (crystal === Latest || crystal === Nightly || cmpTags(crystal, "1.2") >= 0) {
129130
checkArch(arch, ["universal", "x86_64", "aarch64"]);
130131
await installBinaryRelease({crystal, shards, suffix: "darwin-universal", path});
131132
} else {

0 commit comments

Comments
 (0)