Skip to content

Commit 90135f2

Browse files
committed
Merge branch 'master' into v1
2 parents a6b5791 + 1beaa07 commit 90135f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,13 @@ async function installCrystalForLinux({crystal, shards, arch = getArch(), path})
124124

125125
async function installCrystalForMac({crystal, shards, arch = "x86_64", path}) {
126126
checkVersion(crystal, [Latest, Nightly, NumericVersion]);
127-
checkArch(arch, ["x86_64"]);
128-
await installBinaryRelease({crystal, shards, suffix: "darwin-x86_64", path});
127+
if (crystal === Nightly) {
128+
checkArch(arch, ["universal", "x86_64", "aarch64"]);
129+
await installBinaryRelease({crystal, shards, suffix: "darwin-universal", path});
130+
} else {
131+
checkArch(arch, ["x86_64"]);
132+
await installBinaryRelease({crystal, shards, suffix: "darwin-x86_64", path});
133+
}
129134

130135
Core.info("Setting up environment for Crystal");
131136
Core.addPath(Path.join(path, "embedded", "bin"));

0 commit comments

Comments
 (0)