websocket快速操作工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
347 B

  1. const { spawn } = require('child_process');
  2. const rebuildIfDarwin = () => {
  3. if (process.platform !== 'darwin') {
  4. console.log();
  5. console.log(`Skipping 'fsevents' build as platform ${process.platform} is not supported`);
  6. process.exit(0);
  7. } else {
  8. spawn('node-gyp', ['rebuild'], { stdio: 'inherit' });
  9. }
  10. };
  11. rebuildIfDarwin();