Skip to content

Commit 2e9b775

Browse files
rsip22daquinoaldo
andauthored
Add support for ARM architecture (#38)
* Add support for ARM architecture * Test arm64 on travis * Check for arm64 Co-authored-by: Aldo D'Aquino <[email protected]>
1 parent ac9c7ad commit 2e9b775

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
os:
2-
- osx
3-
- linux
2+
- osx
3+
- linux
4+
5+
arch:
6+
- amd64
7+
- arm64
48

59
language: node_js
610
node_js:
7-
- node
8-
- 12
9-
- 10
10-
after_success: npm run coveralls
11+
- node
12+
- 12
13+
- 10
14+
15+
after_success: npm run coveralls

certs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ 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" || process.arch === "arm64")
47+
return "mkcert-" + MKCERT_VERSION + "-linux-arm"
48+
else return "mkcert-" + MKCERT_VERSION + "-linux-amd64"
49+
/* falls through */
4750
case "win32":
4851
return "mkcert-" + MKCERT_VERSION + "-windows-amd64.exe"
4952
default:

0 commit comments

Comments
 (0)