Skip to content

Commit fef70e1

Browse files
committed
add prebuild.js test
1 parent b0457e9 commit fef70e1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

install/prebuild.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const { exec } = require("child_process");
2+
3+
const plat = [
4+
{
5+
platform: "darwin",
6+
arch: "x64"
7+
},
8+
{
9+
platform: "linux",
10+
arch: "x64"
11+
},
12+
{
13+
platform: "win32",
14+
arch: "ia32"
15+
},
16+
{
17+
platform: "win32",
18+
arch: "x64"
19+
}
20+
];
21+
22+
plat.forEach(async (v) => {
23+
console.log(
24+
`node-pre-gyp configure build package --target_platform=${v.platform} --target_arch=${v.arch}`
25+
);
26+
await exec(
27+
`node-pre-gyp configure build package --target_platform=${v.platform} --target_arch=${v.arch}`
28+
);
29+
});

0 commit comments

Comments
 (0)