Added application icon

This commit is contained in:
PAJohnson
2020-09-25 00:27:42 -04:00
parent f4615bdcc9
commit 03214c8dbe
4 changed files with 1143 additions and 4 deletions
+1137 -1
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -1,5 +1,5 @@
{
"name": "odrive_gui",
"name": "ODriveGUI",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -9,7 +9,8 @@
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
"postuninstall": "electron-builder install-app-deps",
"electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten"
},
"main": "background.js",
"dependencies": {
@@ -40,6 +41,7 @@
"babel-eslint": "^10.1.0",
"electron": "^9.0.0",
"electron-devtools-installer": "^3.1.0",
"electron-icon-builder": "^1.0.2",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-cli-plugin-electron-builder": "~2.0.0-rc.4",
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+2 -1
View File
@@ -68,7 +68,8 @@ function createWindow() {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION
}
},
icon: path.join(__static, 'icon.png')
})
win.maximize();
win.setMenu(null);