Skip to content

Commit 4ca29d7

Browse files
committed
fix: add support for downloading arm64 macos image
1 parent bf5fd33 commit 4ca29d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ async function dafnyURLAndFullVersion(version, distribution) {
6262
fullVersion = version;
6363
}
6464
const root = "https://github.com/dafny-lang/dafny/releases/download";
65+
// using the same approach as the dafny-lang/ide-vscode
6566
const url = `${root}/${versionPath}/dafny-${
6667
version == "2.3.0" ? "2.3.0.10506" : version
67-
}-x64-${distribution}.zip`;
68+
}-${os.arch()}-${distribution}.zip`;
6869
return { url, fullVersion };
6970
}
7071

0 commit comments

Comments
 (0)