Skip to content

Commit

Permalink
Add support for ARM architecture (#38)
Browse files Browse the repository at this point in the history
* Add support for ARM architecture
* Test arm64 on travis
* Check for arm64

Co-authored-by: Aldo D'Aquino <[email protected]>
  • Loading branch information
rsip22 and daquinoaldo authored Feb 24, 2020
1 parent ac9c7ad commit 2e9b775
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion certs.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function getExe() {
case "darwin":
return "mkcert-" + MKCERT_VERSION + "-darwin-amd64"
case "linux":
return "mkcert-" + MKCERT_VERSION + "-linux-amd64"
if (process.arch === "arm" || process.arch === "arm64")
return "mkcert-" + MKCERT_VERSION + "-linux-arm"
else return "mkcert-" + MKCERT_VERSION + "-linux-amd64"
/* falls through */
case "win32":
return "mkcert-" + MKCERT_VERSION + "-windows-amd64.exe"
default:
Expand Down

0 comments on commit 2e9b775

Please sign in to comment.