feat: supported psar package

This commit is contained in:
草鞋没号
2021-08-05 09:26:13 +08:00
parent 5e0bb24fb8
commit 0a0e6677ce
5 changed files with 80 additions and 78 deletions

View File

@@ -1,7 +1,6 @@
/**
* electron 主文件
*/
import '@src/common/patch'
import { join } from 'path'
import { app, BrowserWindow } from 'electron'
import dotenv from 'dotenv'
@@ -18,7 +17,7 @@ function createWin() {
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
preload: join(__dirname, '../../src/preload/index.js'),
preload: join(__dirname, '../preload/index.js'),
},
})