refactor: 增量更新

This commit is contained in:
xiaojunnuo
2021-04-03 17:23:22 +08:00
parent 064b8f6d84
commit 136cf7671d
9 changed files with 323 additions and 30 deletions

View File

@@ -30,11 +30,15 @@ module.exports = {
},
pluginOptions: {
electronBuilder: {
afterPack: './pkg/after-pack.js',
nodeIntegration: true,
// Provide an array of files that, when changed, will recompile the main process and restart Electron
// Your main process file will be added by default
mainProcessWatch: ['src/bridge', 'src/*.js', 'node_modules/dev-sidecar/src'],
builderOptions: {
// builderOptions: {
// publish: ['github']// 此处写入github 就好,不用添加其他内容
// },
extraResources: [
{
from: 'extra',
@@ -57,7 +61,7 @@ module.exports = {
},
publish: {
provider: 'generic',
url: ''
url: 'http://dev-sidecar.docmirror.cn/update/'
}
},
chainWebpackMainProcess (config) {