Compare commits

..
2 Commits
Author SHA1 Message Date
nejery 1571e78e23 dev 2020-03-18 18:25:39 +08:00
nejery 6d669324d5 dev 2020-03-18 18:19:30 +08:00
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ function createWindow () {
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null
})
});
mainWindow.webContents.openDevTools()
}
+2 -1
View File
@@ -4,7 +4,8 @@
"description": "A minimal Electron application",
"main": "main.js",
"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",
"keywords": [
+3 -3
View File
@@ -4,7 +4,7 @@
// `nodeIntegration` is turned off. Use `preload.js` to
// selectively enable features needed in the rendering
// process.
const { BrowserWindow } = require('electron');
let myNotification = new Notification('标题', {
body: '通知正文内容'
});