summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawnCable <lawncable.tmw2@simonlaux.de>2018-06-20 15:55:04 +0200
committerLawnCable <lawncable.tmw2@simonlaux.de>2018-06-20 15:55:04 +0200
commit572b6481684a2c5945a0e1a8a7c72400e6d479af (patch)
tree47cccf55587c21a671f7fc16d5393285d7378589
parentc79ab9ac1a74c8ec9c225c10498591ebb3a2d2b9 (diff)
downloadelectron-572b6481684a2c5945a0e1a8a7c72400e6d479af.tar.gz
electron-572b6481684a2c5945a0e1a8a7c72400e6d479af.tar.bz2
electron-572b6481684a2c5945a0e1a8a7c72400e6d479af.tar.xz
electron-572b6481684a2c5945a0e1a8a7c72400e6d479af.zip
Tried to change Icon
-rw-r--r--Readme.md1
-rw-r--r--assets/media/icon.icobin0 -> 54413 bytes
-rw-r--r--assets/media/plushmouboo.pngbin0 -> 9809 bytes
-rw-r--r--package.json2
-rw-r--r--src/main.ts5
-rw-r--r--src/main/manaplus/manaplus.ts4
6 files changed, 7 insertions, 5 deletions
diff --git a/Readme.md b/Readme.md
index 4d434ab..9862c48 100644
--- a/Readme.md
+++ b/Readme.md
@@ -53,3 +53,4 @@ npm start
## Notes / command reference:
`electron-packager <sourcedir> <appname> --platform=<platform> --arch=<arch> [optional flags...]`
+this for icon?:``--icon=src/assets/images/icon.ico`
diff --git a/assets/media/icon.ico b/assets/media/icon.ico
new file mode 100644
index 0000000..afa69ed
--- /dev/null
+++ b/assets/media/icon.ico
Binary files differ
diff --git a/assets/media/plushmouboo.png b/assets/media/plushmouboo.png
new file mode 100644
index 0000000..b2ae589
--- /dev/null
+++ b/assets/media/plushmouboo.png
Binary files differ
diff --git a/package.json b/package.json
index f8ac987..b66919c 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"start": "npm run build && electron .",
- "package": "npm run build && electron-packager . LawnCablesManaLauncher --arch=x64 --out=./out --overwrite --ignore=mana-launcher/src "
+ "package": "npm run build && electron-packager . LawnCablesManaLauncher --arch=x64 --out=./out --overwrite --ignore=mana-launcher/src --icon=assets/media/icon.ico"
},
"author": "LawnCable",
"license": "GNU GPLv3",
diff --git a/src/main.ts b/src/main.ts
index 9df2c55..5200d0b 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -21,7 +21,8 @@ const createWindow = () => {
height: 550,
minHeight: 475,
minWidth: 650,
- frame: false
+ frame: false,
+ icon: path.join(__dirname,"../assets/media/icon.ico")
});
// and load the index.html of the app.
@@ -90,7 +91,7 @@ let appIcon:Tray = null;
EventEmitter.on('openTray',()=>{
if(!appIcon){
- const iconName = "../assets/media/screenshot.png";
+ const iconName = "../assets/media/plushmouboo.png";
const iconPath = path.join(__dirname, iconName)
appIcon = new Tray(iconPath)
diff --git a/src/main/manaplus/manaplus.ts b/src/main/manaplus/manaplus.ts
index 190febe..5396649 100644
--- a/src/main/manaplus/manaplus.ts
+++ b/src/main/manaplus/manaplus.ts
@@ -1,5 +1,5 @@
-import { ManaPlusApp } from './ManaApp/manaApp.interface';
-import { ManaPlusAppWindows } from './ManaApp/windows';
+import { ManaPlusApp } from './manaApp/manaApp.interface';
+import { ManaPlusAppWindows } from './manaApp/windows';
import * as os from 'os';
import * as path from 'path';
import * as fs from 'fs-extra';