Skip to content

Commit bde52c7

Browse files
authored
Add support for ARM architecture (#1)
1 parent ac9c7ad commit bde52c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

certs.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ function getExe() {
4343
case "darwin":
4444
return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
4545
case "linux":
46-
return "mkcert-" + MKCERT_VERSION + "-linux-amd64"
46+
if (process.arch === "arm")
47+
return "mkcert-" + MKCERT_VERSION + "-linux-arm"
48+
if (process.arch === "x64")
49+
return "mkcert-" + MKCERT_VERSION + "-linux-amd64"
50+
/* falls through */
4751
case "win32":
4852
return "mkcert-" + MKCERT_VERSION + "-windows-amd64.exe"
4953
default:

0 commit comments

Comments
 (0)