aboutsummaryrefslogtreecommitdiff
path: root/src/cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.js')
-rw-r--r--src/cli.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cli.js b/src/cli.js
index 16a23d4..c3d957e 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -80,7 +80,16 @@ async function init() {
// --update
if (cli.hasSwitch("update") && gamepathExists()) {ipcMain.emit("update")}
// --version
- if (cli.hasSwitch("version") && gamepathExists()) {ipcMain.emit("version-cli")}
+ if (cli.hasSwitch("version") && gamepathExists()) {
+ let version = require("./modules/version");
+
+ console.log("Viper: v" + require("../package.json").version);
+ console.log("Titanfall 2: " + version.titanfall());
+ console.log("Northstar: " + version.northstar());
+ console.log("Node: " + process.version);
+ console.log("Electron: v" + process.versions.electron);
+ exit();
+ }
// --setpath
if (cli.hasSwitch("setpath")) {