Skip to content

Commit

Permalink
Add app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
karliky committed Dec 14, 2019
1 parent b808709 commit 3bbd890
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ function createWindow() {
height: 340,
frame: false,
bottom: 0,
icon: path.join(__dirname, '/static/resources/bugcraftstudio.ico'),
backgroundColor: '#1a1a1a',
webPreferences: {
devTools: true
devTools: true,
}
});

Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@
}
]
},
"mac": {
"icon": "build/icons/icon.icns"
},
"win": {
"icon": "build/icons/icon.ico"
},
"linux": {
"icon": "build/icons"
"icon": "static/resources/bugcraftstudio.ico"
}
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Bugcraft Studio</title>
<title>BugCraft Studio</title>
<% if (htmlWebpackPlugin.options.nodeModules) { %>
<!-- Add `node_modules/` to global paths so `require` works properly in development -->
<script>
Expand Down
4 changes: 3 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { app, BrowserWindow } from 'electron' // eslint-disable-line

const path = require('path');
/**
* Set `__static` path to static files in production
* https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html
Expand All @@ -22,7 +22,9 @@ function createWindow() {
minWidth: 330,
height: 340,
frame: false,
title: 'BugCraft Studio',
bottom: 0,
icon: path.join(__dirname, '/../../static/resources/bugcraftstudio.ico'),
backgroundColor: '#1a1a1a',
webPreferences: {
devTools: true,
Expand Down
Binary file added static/resources/bugcraftstudio.ico
Binary file not shown.

0 comments on commit 3bbd890

Please sign in to comment.