Skip to content

Commit 9add118

Browse files
committed
fix: arm mac support
Add new suffix for arm mac and update mkcert version.
1 parent b485509 commit 9add118

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

certs.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const exec = require("child_process").exec
66
const https = require("https")
77
const getAppDataPath = require("appdata-path")
88

9-
const MKCERT_VERSION = "v1.4.3"
9+
const MKCERT_VERSION = "v1.4.4"
1010
const CERT_PATH = getAppDataPath("https-localhost")
1111

1212
// check for updates
@@ -41,7 +41,9 @@ function getExe() {
4141
/* istanbul ignore next: tested on all platform on travis */
4242
switch (process.platform) {
4343
case "darwin":
44-
return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
44+
if (process.arch === "arm" || process.arch === "arm64")
45+
return "mkcert-" + MKCERT_VERSION + "-darwin-arm64"
46+
else return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
4547
case "linux":
4648
if (process.arch === "arm" || process.arch === "arm64")
4749
return "mkcert-" + MKCERT_VERSION + "-linux-arm"

0 commit comments

Comments
 (0)