Le SELECT du choix de rôle devient un radio
This commit is contained in:
35
node_modules/wrtc/scripts/download-prebuilt.js
generated
vendored
Executable file
35
node_modules/wrtc/scripts/download-prebuilt.js
generated
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env node
|
||||
/* eslint no-process-env:0, no-process-exit:0 */
|
||||
'use strict';
|
||||
|
||||
const { spawnSync } = require('child_process');
|
||||
|
||||
function main(exit) {
|
||||
const args = ['install'];
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
args.push('--debug');
|
||||
}
|
||||
|
||||
if (process.env.TARGET_ARCH) {
|
||||
args.push('--target_arch=' + process.env.TARGET_ARCH);
|
||||
}
|
||||
|
||||
let { status } = spawnSync('node-pre-gyp', args, {
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
if (status) {
|
||||
if (!exit) {
|
||||
throw new Error(status);
|
||||
}
|
||||
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = main;
|
||||
|
||||
if (require.main === module) {
|
||||
main(true);
|
||||
}
|
||||
Reference in New Issue
Block a user