Skip to content

Commit 0304e17

Browse files
committed
Add support for Apple M1 chips.
1 parent d1e3575 commit 0304e17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/postinstall.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const releases = {
1515
};
1616

1717
const platform = process.platform;
18-
const arch = process.arch === "x64" ? "x86_64" : "x86_32";
18+
const arch =
19+
process.arch === "x64" || process.arch === "arm64" ? "x86_64" : "x86_32";
1920
const release = platform + "_" + arch;
2021
const protocDirectory = path.join(__dirname, "..", "protoc");
2122

0 commit comments

Comments
 (0)