aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-28 12:08:55 +0100
committerAlystrasz <contact@remyraes.com>2021-12-28 12:08:55 +0100
commitc437df2593cf7d00a27219456cdf23a090f6027d (patch)
tree224af3a10face9f92e9e2f99be33688259602a45
parentc775cc8a6f674c47a904113c7edbd25b1fa5fb63 (diff)
downloadViper-c437df2593cf7d00a27219456cdf23a090f6027d.tar.gz
Viper-c437df2593cf7d00a27219456cdf23a090f6027d.zip
[chore] setting resources folder in build configuration
-rw-r--r--package.json7
-rw-r--r--src/index.js2
2 files changed, 7 insertions, 2 deletions
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,