Skip to content

Commit 01469cc

Browse files
committed
fix path for bsc
1 parent 92d3d4d commit 01469cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bsc

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
var child_process = require("child_process");
55
var path = require("path");
6-
var exe = path.join(__dirname, process.platform, "bsc.exe");
6+
var exe = path.join(
7+
__dirname,
8+
process.platform === "darwin" && process.arch === "arm64"
9+
? process.platform + process.arch
10+
: process.platform,
11+
"bsc.exe"
12+
);
713
var delegate_args = process.argv.slice(2);
814

915
try {

0 commit comments

Comments
 (0)