| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/workspace/happymandarin/node_modules/v8-debug/tools/ |
Upload File : |
var rimraf = require('rimraf');
var extend = require('util')._extend;
var gyp = require('node-pre-gyp');
rimraf.sync('./build');
var versions = ['0.10.0', '0.12.0', '4.0.0', '5.0.0', '6.0.0'];
var matrix = {
x64: ['win32', 'linux', 'darwin'],
ia32: ['win32']
};
var except = { '4.0.0-win32-ia32': true };
var targets = [];
Object.keys(matrix).forEach(function(arch) {
matrix[arch].forEach(function(platform) {
versions.forEach(function(version) {
if (except[version + '-' + platform + '-' + arch]) return;
targets.push({
target: version,
target_platform: platform,
target_arch: arch
});
});
});
}, []);
module.exports = function prepublish(err) {
if (err) {
console.log(err.message);
return process.exit(1);
}
var target = targets.pop();
if (!target) process.exit(0);
var prog = extend(new gyp.Run(), {opts: target});
prog.commands.install([], prepublish);
};