Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions certs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const exec = require("child_process").exec
const https = require("https")
const getAppDataPath = require("appdata-path")

const MKCERT_VERSION = "v1.4.3"
const MKCERT_VERSION = "v1.4.4"
const CERT_PATH = getAppDataPath("https-localhost")

// check for updates
Expand Down Expand Up @@ -41,7 +41,9 @@ function getExe() {
/* istanbul ignore next: tested on all platform on travis */
switch (process.platform) {
case "darwin":
return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
if (process.arch === "arm" || process.arch === "arm64")
return "mkcert-" + MKCERT_VERSION + "-darwin-arm64"
else return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
case "linux":
if (process.arch === "arm" || process.arch === "arm64")
return "mkcert-" + MKCERT_VERSION + "-linux-arm"
Expand Down