mirror of
http://amkj.cqemme.com:10080/nejery/test.git
synced 2026-08-25 06:38:30 +08:00
dev
This commit is contained in:
@@ -28,7 +28,7 @@ function createWindow () {
|
|||||||
// in an array if your app supports multi windows, this is the time
|
// in an array if your app supports multi windows, this is the time
|
||||||
// when you should delete the corresponding element.
|
// when you should delete the corresponding element.
|
||||||
mainWindow = null
|
mainWindow = null
|
||||||
})
|
});
|
||||||
mainWindow.webContents.openDevTools()
|
mainWindow.webContents.openDevTools()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
"description": "A minimal Electron application",
|
"description": "A minimal Electron application",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron ."
|
"start": "electron .",
|
||||||
|
"package":"electron-packager . rikaze --platform=win32 --arch=x64 --icon=computer.ico --out=./out --asar --app-version=0.0.1 --overwrite --ignore=node_modules"
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/electron/electron-quick-start",
|
"repository": "https://github.com/electron/electron-quick-start",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@
|
|||||||
// `nodeIntegration` is turned off. Use `preload.js` to
|
// `nodeIntegration` is turned off. Use `preload.js` to
|
||||||
// selectively enable features needed in the rendering
|
// selectively enable features needed in the rendering
|
||||||
// process.
|
// process.
|
||||||
|
let myNotification = new Notification('标题', {
|
||||||
|
body: '通知正文内容'
|
||||||
const { BrowserWindow } = require('electron');
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user