dev...
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user