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(-) 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