From bde52c7822de19e7983705bafbaec8139342c015 Mon Sep 17 00:00:00 2001 From: Renata D'Avila Date: Fri, 21 Feb 2020 16:39:24 -0300 Subject: [PATCH 1/3] Add support for ARM architecture (#1) --- certs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/certs.js b/certs.js index 4c1a49e..b016bdf 100644 --- a/certs.js +++ b/certs.js @@ -43,7 +43,11 @@ function getExe() { case "darwin": return "mkcert-" + MKCERT_VERSION + "-darwin-amd64" case "linux": - return "mkcert-" + MKCERT_VERSION + "-linux-amd64" + if (process.arch === "arm") + return "mkcert-" + MKCERT_VERSION + "-linux-arm" + if (process.arch === "x64") + return "mkcert-" + MKCERT_VERSION + "-linux-amd64" + /* falls through */ case "win32": return "mkcert-" + MKCERT_VERSION + "-windows-amd64.exe" default: From 9ffcadf98daef72aa957fde6c678b119e39ebb9c Mon Sep 17 00:00:00 2001 From: Aldo D'Aquino Date: Mon, 24 Feb 2020 12:36:26 +0100 Subject: [PATCH 2/3] Test arm64 on travis --- .travis.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 49367a2..dac7337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,15 @@ os: -- osx -- linux + - osx + - linux + +arch: + - amd64 + - arm64 language: node_js node_js: -- node -- 12 -- 10 -after_success: npm run coveralls + - node + - 12 + - 10 + +after_success: npm run coveralls \ No newline at end of file From 0069c2bd43eef34f5fa21eef5700a738887df4dc Mon Sep 17 00:00:00 2001 From: Aldo D'Aquino Date: Mon, 24 Feb 2020 12:45:59 +0100 Subject: [PATCH 3/3] Check for arm64 --- certs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/certs.js b/certs.js index b016bdf..f608f9b 100644 --- a/certs.js +++ b/certs.js @@ -43,10 +43,9 @@ function getExe() { case "darwin": return "mkcert-" + MKCERT_VERSION + "-darwin-amd64" case "linux": - if (process.arch === "arm") + if (process.arch === "arm" || process.arch === "arm64") return "mkcert-" + MKCERT_VERSION + "-linux-arm" - if (process.arch === "x64") - return "mkcert-" + MKCERT_VERSION + "-linux-amd64" + else return "mkcert-" + MKCERT_VERSION + "-linux-amd64" /* falls through */ case "win32": return "mkcert-" + MKCERT_VERSION + "-windows-amd64.exe"