Add icon
This commit is contained in:
parent
5fc1832fa6
commit
3838940f68
3 changed files with 4 additions and 1 deletions
BIN
image/icon.ico
Normal file
BIN
image/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
|
@ -30,7 +30,9 @@
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"forge": {
|
"forge": {
|
||||||
"packagerConfig": {},
|
"packagerConfig": {
|
||||||
|
"icon": "./image/icon.ico"
|
||||||
|
},
|
||||||
"makers": [
|
"makers": [
|
||||||
{
|
{
|
||||||
"name": "@electron-forge/maker-zip",
|
"name": "@electron-forge/maker-zip",
|
||||||
|
|
|
@ -19,6 +19,7 @@ const createWindow = () => {
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
width: 1280,
|
width: 1280,
|
||||||
height: 720,
|
height: 720,
|
||||||
|
icon: "./image/icon.ico",
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, "preload.js"),
|
preload: path.join(__dirname, "preload.js"),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue