aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlystrasz <contact@remyraes.com>2021-12-28 13:46:56 +0100
committerAlystrasz <contact@remyraes.com>2021-12-28 13:46:56 +0100
commitbe7c81faf3574ec2e8df43c7c4e03df874d8cec1 (patch)
tree7cc6724ecdf12c2d7479ccc53697754d054b7e55
parentd125375e85178169cd3fb644a0e9e76ecef48911 (diff)
parentb2bdedddad5001db625478f91ff5d8e86b79f87d (diff)
downloadViper-be7c81faf3574ec2e8df43c7c4e03df874d8cec1.tar.gz
Viper-be7c81faf3574ec2e8df43c7c4e03df874d8cec1.zip
Merge branch 'main' into feat/icon
-rw-r--r--package.json1
-rw-r--r--src/utils.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index 1de4f77..b852d36 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
},
"scripts": {
"start": "npx electron src/index.js",
+ "debug": "npx electron src/index.js --debug",
"build": "npx electron-builder --win nsis --linux appimage"
},
"repository": {
diff --git a/src/utils.js b/src/utils.js
index 6b6fbfa..85cc26e 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -33,8 +33,10 @@ function setpath(win) {
settings.gamepath = cli.param("setpath");
} else {
dialog.showOpenDialog({properties: ["openDirectory"]}).then(res => {
- win.webContents.send("newpath", res.filePaths[0]);
settings.gamepath = res.filePaths[0];
+ settings.zip = path.join(settings.gamepath + "/northstar.zip");
+
+ win.webContents.send("newpath", settings.gamepath);
}).catch(err => {console.error(err)})
}