12345678910111213141516171819202122232425262728 |
- const path = require('path')
- const dependencies = require('../package.json')
- let arch = "";
- let unpack = []
- if(process.env.arch == 'x64'){
- arch = "x64";
- unpack = "**/bin/x64/**";
- }else{
- arch = "ia32";
- unpack = "**/bin/ia32/**";
- }
- /**
- * `electron-packager` options
- * https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-electron-packager.html
- */
- module.exports = {
- arch: arch,
- asar: { unpack: unpack },
- dir: path.join(__dirname, '../'),
- icon: path.join(__dirname, '../build/icons/icon'),
- ignore: /(^\/(src|test|\.[a-z]+|README|yarn|static|dist\/web))|\.gitkeep/,
- out: path.join(__dirname, '../build'),
- overwrite: true,
- platform: process.env.BUILD_TARGET || 'all',
- appCopyright: dependencies.softInfo.copyright
- }
|