he wei
2022-11-17 cd327dcbaca3476df44b064e56b950dc054cbb87
vue.config.js
@@ -1,5 +1,8 @@
const path = require('path');
const json = require('./package.json');
const { version } = json;
function resolve(dir) {
  return path.join(__dirname, dir);
}
@@ -11,24 +14,25 @@
    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'
          '**/*'
        ],
      }
    }
@@ -41,7 +45,7 @@
      .set('components', resolve('src/components'));
    config.plugin('html').tap((args) => {
      args[0].title = '内阻测试分析软件V1.1.1';
      args[0].title = `内阻测试分析软件V${version}`;
      return args;
    })
  }