build-standalone.js 1.8 KB

1234567891011121314151617181920212223242526
  1. var NwBuilder = require('nw-builder');
  2. var nw = new NwBuilder({
  3. // files: ['**', '!cache/**', '!build/**'], // get everything except the nwbuild stuff
  4. // files: ['**'], // get everything
  5. // files: ['**', '!closure-library/**', '!_soy/**', '!node_modules/**', '!openscad-openjscad-translator/**', '!cache/**', '!build/**'], // use the glob format
  6. files: ['fonts/**', 'lie/lie.polyfill.min.js', 'bootbox/bootbox.min.js', 'blockly/blockly_compressed.js','blockly/blocks_compressed.js','jquery/jquery-1.11.3.min.js', 'jquery/jquery-ui.min.js','jquery/jquery.hammer.js', 'jquery/jquery.ui.touch-punch.min.js', 'bootstrap/bootstrap-3.3.4-dist/css/bootstrap.min.css', 'bootstrap/bootstrap-3.3.4-dist/css/bootstrap-theme.min.css', 'bootstrap/bootstrap-3.3.4-dist/js/bootstrap.min.js', 'blockly/openscad_compressed.js', 'blockscad/viewer_compressed.js', 'blockscad/blockscad_compressed.js', 'blockscad/underscore.js', 'blockscad/openscad-openjscad-translator.js', 'blockscad/style.css', 'favicon.ico', 'ewicon.png', 'imgs/**', 'docs/**', 'icon128.ico', 'icon128.png', 'blockly/media/**', 'index.html', 'package.json', 'blockly/msg/messages.js', 'blockly/msg/js/en.js', 'blockly/msg/json/en.json', 'TOS.html', 'privacy.html', 'gpl-3.0-standalone.html', 'examples/**', 'opentype/dist/opentype.min.js', 'spectrum/**', 'gifshot/gifshot.min.js', 'blockscad/sorttable.js', 'blockscad/FileSaver.min.js','blockscad/msg/js/*','icons.png'],
  7. platforms: ['win64', 'win32'],
  8. // platforms: ['win64', 'linux'],
  9. // version: '0.12.1',
  10. version: '0.12.3',
  11. winIco: 'favicon.ico',
  12. // window: {
  13. // icon: 'favicon.ico'
  14. // }
  15. });
  16. //Log stuff you want
  17. nw.on('log', console.log);
  18. // Build returns a promise
  19. nw.build().then(function () {
  20. console.log('all done!');
  21. }).catch(function (error) {
  22. console.error(error);
  23. });