build-package.js 428 B

123456789101112
  1. var spawn = require('child_process').spawn;
  2. var os = require('os');
  3. if (os.type() === 'Linux') {
  4. spawn('bash', ['dist/package.sh'], {stdio: 'inherit'});
  5. } else if (os.type() === 'Darwin') {
  6. spawn('bash', ['dist/package.sh'], {stdio: 'inherit'});
  7. } else if (os.type() === 'Windows_NT') {
  8. spawn('powershell', ['dist/package.sh'], {stdio: 'inherit'});
  9. } else {
  10. throw new Error("Unsupported OS found: " + os.type());
  11. }