We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6214c2 commit 8e70eccCopy full SHA for 8e70ecc
index.js
@@ -399,13 +399,18 @@ async function downloadCrystalNightly(suffix) {
399
return onlySubdir(extractedPath);
400
}
401
402
-async function installCrystalForWindows({crystal, arch = "x86_64", path}) {
+async function installCrystalForWindows({crystal, shards, arch = "x86_64", path}) {
403
checkVersion(crystal, [Nightly]);
404
checkArch(arch, ["x86_64"]);
405
await IO.mv(await downloadCrystalNightlyForWindows(), path);
406
407
Core.info("Setting up environment for Crystal");
408
Core.addPath(path);
409
+ if (shards !== Any) {
410
+ try {
411
+ await FS.unlink(Path.join(path, "shards.exe"));
412
+ } catch (e) {}
413
+ }
414
415
416
async function downloadCrystalNightlyForWindows() {
0 commit comments