Skip to content

Commit

Permalink
add prebuild.js test
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Jul 6, 2023
1 parent b0457e9 commit fef70e1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions install/prebuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const { exec } = require("child_process");

const plat = [
{
platform: "darwin",
arch: "x64"
},
{
platform: "linux",
arch: "x64"
},
{
platform: "win32",
arch: "ia32"
},
{
platform: "win32",
arch: "x64"
}
];

plat.forEach(async (v) => {
console.log(
`node-pre-gyp configure build package --target_platform=${v.platform} --target_arch=${v.arch}`
);
await exec(
`node-pre-gyp configure build package --target_platform=${v.platform} --target_arch=${v.arch}`
);
});

0 comments on commit fef70e1

Please sign in to comment.