Skip to content

Commit 51efb43

Browse files
committed
add macOS arm64 binary
1 parent 7bf1c0e commit 51efb43

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FLOW_BINS = \
44
flow-linux64-v$(FLOW_VERSION)/flow \
55
flow-linux-arm64-v$(FLOW_VERSION)/flow \
66
flow-osx-v$(FLOW_VERSION)/flow \
7+
flow-osx-arm64-v$(FLOW_VERSION)/flow \
78
flow-win64-v$(FLOW_VERSION)/flow.exe
89

910
.PHONY: all
@@ -66,6 +67,9 @@ flow-linux-arm64-v%/flow:
6667
flow-osx-v%/flow:
6768
$(get-flow)
6869

70+
flow-osx-arm64-v%/flow:
71+
$(get-flow)
72+
6973
flow-win64-v%/flow.exe:
7074
$(get-flow)
7175

SHASUM256.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
8be245e57445e7b3f7f8a4c7dfc8d06d2b493b1654f6cb2791af3a78d088828b flow-linux64-v0.206.0/flow
22
83854daff1a8911439314207bcba6fec5dbac80891186642b4ba2783340970d5 flow-linux-arm64-v0.206.0/flow
33
940b921b5b23e61c0af339623572f7e8f31de7123ff994c9b02b69a8329f31f3 flow-osx-v0.206.0/flow
4+
f994baa69f16fc729eb990e2c80c87b9de39841fecf801ddf49f5dd232a15990 flow-osx-arm64-v0.206.0/flow
45
67cf09d2b7b9bddbb39d9d6264f6085952e7c836cb4e8b8733d46eede7cef858 flow-win64-v0.206.0/flow.exe

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ var VERSION = require('./package.json').version;
1010
var path = require('path');
1111

1212
module.exports =
13-
process.platform === 'darwin'
13+
process.platform === 'darwin' && process.arch === 'x64'
1414
? path.join(__dirname, 'flow-osx-v' + VERSION, 'flow') :
15+
process.platform === 'darwin' && process.arch === 'arm64'
16+
? path.join(__dirname, 'flow-osx-arm64-v' + VERSION, 'flow') :
1517
process.platform === 'linux' && process.arch === 'x64'
1618
? path.join(__dirname, 'flow-linux64-v' + VERSION, 'flow') :
1719
process.platform === 'linux' && process.arch === 'arm64'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"flow-linux64-v*/flow",
2424
"flow-linux-arm64-v*/flow",
2525
"flow-osx-v*/flow",
26+
"flow-osx-arm64-v*/flow",
2627
"flow-win64-v*/flow.exe",
2728
"vendor",
2829
"cli.js",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Binary wrapper for [Flow](https://flow.org) - A static type checker for JavaScript
44
5-
macOS (x64), Linux (x64, arm64) and Windows (x64) binaries are currently [provided](https://flow.org/en/docs/install/).
5+
macOS (x64, arm64), Linux (x64, arm64) and Windows (x64) binaries are currently [provided](https://flow.org/en/docs/install/).
66

77

88
## CLI

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
*/
77
var fs = require('fs');
88

9-
// osx
9+
// osx x64
1010
process.platform = 'darwin';
11+
process.arch = 'x64'
12+
delete require.cache[require.resolve('./')];
13+
fs.statSync(require('./'));
14+
15+
// osx arm64
16+
process.platform = 'darwin';
17+
process.arch = 'arm64'
1118
delete require.cache[require.resolve('./')];
1219
fs.statSync(require('./'));
1320

0 commit comments

Comments
 (0)