build.config.js 753 B

12345678910111213141516171819202122232425262728
  1. const path = require('path')
  2. const dependencies = require('../package.json')
  3. let arch = "";
  4. let unpack = []
  5. if(process.env.arch == 'x64'){
  6. arch = "x64";
  7. unpack = "**/bin/x64/**";
  8. }else{
  9. arch = "ia32";
  10. unpack = "**/bin/ia32/**";
  11. }
  12. /**
  13. * `electron-packager` options
  14. * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-electron-packager.html
  15. */
  16. module.exports = {
  17. arch: arch,
  18. asar: { unpack: unpack },
  19. dir: path.join(__dirname, '../'),
  20. icon: path.join(__dirname, '../build/icons/icon'),
  21. ignore: /(^\/(src|test|\.[a-z]+|README|yarn|static|dist\/web))|\.gitkeep/,
  22. out: path.join(__dirname, '../build'),
  23. overwrite: true,
  24. platform: process.env.BUILD_TARGET || 'all',
  25. appCopyright: dependencies.softInfo.copyright
  26. }