| | |
| | | const path = require('path'); |
| | | |
| | | const json = require('./package.json'); |
| | | const { version } = json; |
| | | |
| | | function resolve(dir) { |
| | | return path.join(__dirname, dir); |
| | | } |
| | |
| | | host: '0.0.0.0', |
| | | port: 8081 |
| | | }, |
| | | pluginOptions:{ |
| | | electronBuilder:{ |
| | | preload:'src/preload.js', |
| | | pluginOptions: { |
| | | electronBuilder: { |
| | | preload: 'src/preload.js', |
| | | builderOptions: { |
| | | appId: 'com.res.whyc', |
| | | productName: 'resXmlParser', |
| | | win: { |
| | | // requireAdministrator |
| | | requestedExecutionLevel: "highestAvailable" |
| | | }, |
| | | publish: { |
| | | provider: 'generic', |
| | | url: 'http://118.89.139.230:9098/res-update/', |
| | | updaterCacheDirName: 'res-update' |
| | | }, |
| | | extraResources: [ |
| | | { |
| | | from: "./public/runtime", |
| | | to: "./runtime" |
| | | }, |
| | | { |
| | | from: "./public/app_x64.exe", |
| | | to: "./app_x64.exe" |
| | | } |
| | | ], |
| | | files: [ |
| | | '**/*', |
| | | '!**/runtime', |
| | | '!**/app_x64.exe' |
| | | '**/*' |
| | | ], |
| | | } |
| | | } |
| | |
| | | .set('components', resolve('src/components')); |
| | | |
| | | config.plugin('html').tap((args) => { |
| | | args[0].title = '内阻测试分析软件V1.1.1'; |
| | | args[0].title = `内阻测试分析软件V${version}`; |
| | | return args; |
| | | }) |
| | | } |