download-prebuilds.js 441 B

123456789101112131415
  1. #!/usr/bin/env node
  2. import { dirname } from 'path';
  3. import { fileURLToPath } from 'url';
  4. import { exec } from 'child_process';
  5. exec('download-msgpackr-prebuilds', propagateOutput);
  6. process.chdir(fileURLToPath(dirname(dirname(import.meta.url))));
  7. exec('prebuildify-ci download', propagateOutput);
  8. function propagateOutput(error, stdout, stderr) {
  9. console.error(stderr);
  10. console.log(stdout);
  11. if (error?.code)
  12. process.exit(error.code);
  13. }