Browse Source

Ajout icone

Arthur Brandao 5 years ago
parent
commit
dca60e27cf
5 changed files with 6 additions and 1 deletions
  1. BIN
      electronotes.icns
  2. BIN
      electronotes.ico
  3. BIN
      electronotes.png
  4. 3 0
      helper/window.js
  5. 3 1
      package.json

BIN
electronotes.icns


BIN
electronotes.ico


BIN
electronotes.png


+ 3 - 0
helper/window.js

@@ -1,5 +1,6 @@
 const config = require('../config');
 const { BrowserWindow } = require('electron');
+const path = require('path');
 const window = {};
 
 window.new = function (file, width, height) {
@@ -10,6 +11,7 @@ window.new = function (file, width, height) {
     const win = new BrowserWindow ({
         width: width,
         height: height,
+        icon: path.join(__dirname, '../electronotes.png'),
         webPreferences: {
             nodeIntegration: true
         }
@@ -26,6 +28,7 @@ window.simple = function (file, width, height) {
     const win = new BrowserWindow ({
         width: width,
         height: height,
+        icon: path.join(__dirname, '../electronotes.png'),
         webPreferences: {
             nodeIntegration: false
         }

+ 3 - 1
package.json

@@ -22,7 +22,9 @@
   "license": "MIT",
   "config": {
     "forge": {
-      "packagerConfig": {},
+      "packagerConfig": {
+        "icon": "electronotes.icns"
+      },
       "makers": [
         {
           "name": "@electron-forge/maker-squirrel",