From cccca456f41c417d40934e768fbe1235d017bfc5 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Tue, 28 Dec 2021 11:50:29 +0100 Subject: [feat] application has a logo --- src/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 4e64414..ffb4bd7 100644 --- a/src/index.js +++ b/src/index.js @@ -16,6 +16,7 @@ function start() { title: "Viper", resizable: false, titleBarStyle: "hidden", + icon: path.join(__dirname, 'assets/icons/northstarCN_icon.png'), webPreferences: { nodeIntegration: true, contextIsolation: false, -- cgit v1.2.3 From c437df2593cf7d00a27219456cdf23a090f6027d Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Tue, 28 Dec 2021 12:08:55 +0100 Subject: [chore] setting resources folder in build configuration --- package.json | 7 ++++++- src/index.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/index.js') diff --git a/package.json b/package.json index 522a4a5..1de4f77 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,12 @@ "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" + } + }, "scripts": { "start": "npx electron src/index.js", "build": "npx electron-builder --win nsis --linux appimage" diff --git a/src/index.js b/src/index.js index ffb4bd7..4df7d91 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ function start() { title: "Viper", resizable: false, titleBarStyle: "hidden", - icon: path.join(__dirname, 'assets/icons/northstarCN_icon.png'), + icon: path.join(__dirname, 'assets/icons/icon.png'), webPreferences: { nodeIntegration: true, contextIsolation: false, -- cgit v1.2.3 From 87d8ff33fd699d4b90f5a8a0453d520819061d42 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Tue, 28 Dec 2021 12:40:43 +0100 Subject: [feat] adding a 512x512 icon --- src/assets/icons/512x512.png | Bin 0 -> 137107 bytes src/index.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/assets/icons/512x512.png (limited to 'src/index.js') diff --git a/src/assets/icons/512x512.png b/src/assets/icons/512x512.png new file mode 100644 index 0000000..281f3dd Binary files /dev/null and b/src/assets/icons/512x512.png differ diff --git a/src/index.js b/src/index.js index 4df7d91..3d50cee 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ function start() { title: "Viper", resizable: false, titleBarStyle: "hidden", - icon: path.join(__dirname, 'assets/icons/icon.png'), + icon: path.join(__dirname, 'assets/icons/512x512.png'), webPreferences: { nodeIntegration: true, contextIsolation: false, -- cgit v1.2.3