This commit is contained in:
zilong
2021-10-27 23:55:43 +08:00
parent e1edf8009e
commit 2701d0cfe7
13 changed files with 396 additions and 100 deletions

View File

@@ -11,13 +11,20 @@ let p = require('path').join(NMApiPath + '/node_modules');
require('module').globalPaths.unshift(p); //加入到module的路径列表
console.log(process.resourcesPath, NMApiPath)
if(!isDev)const svc = require(NMApiPath + '/app.js')
let svc
if(!isDev)svc = require(NMApiPath + '/app.js')
function createWindow() {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
minWidth: 800,
minHeight: 600,
maxWidth: 1000,
maxHeight: 800,
maximizable: false,
minimizable: false,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true,