aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-30 00:35:58 +0100
committerGitHub <noreply@github.com>2021-12-30 00:35:58 +0100
commit25c6b17830dc161e58cd8055083e21268f035b39 (patch)
tree4ecc6f86bc9614d09497619781d5cff978da954d
parentfabfee3a0b845a9b58dbb59932228d6c4223aad3 (diff)
parentdcbdadbe3568beca429b0df5caf96156ee43f474 (diff)
downloadViper-25c6b17830dc161e58cd8055083e21268f035b39.tar.gz
Viper-25c6b17830dc161e58cd8055083e21268f035b39.zip
Merge pull request #2 from Alystrasz/feat/icon
feat: Icons
-rw-r--r--README.md4
-rw-r--r--package.json12
-rw-r--r--src/assets/icons/512x512.pngbin0 -> 137107 bytes
-rw-r--r--src/assets/icons/icon.icobin0 -> 201799 bytes
-rw-r--r--src/index.js1
5 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index 59e6a6e..91d1ffb 100644
--- a/README.md
+++ b/README.md
@@ -31,3 +31,7 @@ Currently Viper is capable of:
* Be pretty!
Besides this I've been considering adding some easy to use VPK modding tools so everybody can have fun with VPK modding even if you don't know how to do it the traditional way. However that is not at the top of the todo list right now.
+
+## Credits
+
+All credits for logos go to Imply#9781. \ No newline at end of file
diff --git a/package.json b/package.json
index d730940..5e19ef4 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,17 @@
"version": "1.0.0",
"description": "Launcher+Updater for TF|2 Northstar",
"main": "src/index.js",
- "build": {"appId": "com.0negal.viper"},
+ "build": {
+ "appId": "com.0negal.viper",
+ "directories": {
+ "buildResources": "src/assets/icons"
+ },
+ "nsis": {
+ "installerIcon": "icon.ico",
+ "uninstallerIcon": "icon.ico",
+ "installerHeaderIcon": "icon.ico"
+ }
+ },
"scripts": {
"start": "npx electron src/index.js",
"debug": "npx electron src/index.js --debug",
diff --git a/src/assets/icons/512x512.png b/src/assets/icons/512x512.png
new file mode 100644
index 0000000..281f3dd
--- /dev/null
+++ b/src/assets/icons/512x512.png
Binary files differ
diff --git a/src/assets/icons/icon.ico b/src/assets/icons/icon.ico
new file mode 100644
index 0000000..32df0c5
--- /dev/null
+++ b/src/assets/icons/icon.ico
Binary files differ
diff --git a/src/index.js b/src/index.js
index aacfe27..8343ba9 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,6 +17,7 @@ function start() {
title: "Viper",
resizable: false,
titleBarStyle: "hidden",
+ icon: path.join(__dirname, 'assets/icons/512x512.png'),
webPreferences: {
nodeIntegration: true,
contextIsolation: false,