Skip to content

Commit

Permalink
feat: change app name and add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonatanMedeiros committed May 24, 2020
1 parent dbe21bd commit b59c016
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions main-process/main-window/main-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export class MainWindow {
},
});

if (process.platform === 'linux') {
const icon = path.join(__dirname, '../../src/assets/electron-logo.png');
this.browserWindow.setIcon(icon);
}

this.initURL();

// Emitted when the window is closed.
Expand Down
6 changes: 2 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import { ManageAppStore } from './main-process/store/manage-app-store';
let mainWindow: MainWindow;
let store: ManageAppStore;

if (process.mas) {
app.setName('WEB View Angular Electron');
}

function initialize() {

app.setName('WEB View Angular Electron');

initializeStore();
makeSingleInstance();

Expand Down
Binary file added src/assets/electron-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebviewAngularElectron</title>
<title>WEB View Angular Electron</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Expand Down

0 comments on commit b59c016

Please sign in to comment.