diff options
author | Alystrasz <contact@remyraes.com> | 2021-12-28 12:08:55 +0100 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2021-12-28 12:08:55 +0100 |
commit | c437df2593cf7d00a27219456cdf23a090f6027d (patch) | |
tree | 224af3a10face9f92e9e2f99be33688259602a45 | |
parent | c775cc8a6f674c47a904113c7edbd25b1fa5fb63 (diff) | |
download | Viper-c437df2593cf7d00a27219456cdf23a090f6027d.tar.gz Viper-c437df2593cf7d00a27219456cdf23a090f6027d.zip |
[chore] setting resources folder in build configuration
-rw-r--r-- | package.json | 7 | ||||
-rw-r--r-- | 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, |