aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 660d3a0..063e4df 100644
--- a/src/index.js
+++ b/src/index.js
@@ -53,6 +53,14 @@ ipcMain.on("getversion", () => {
});
});
+ipcMain.on("versioncli", () => {
+ console.log("Viper: v" + require("../package.json").version);
+ console.log("Northstar: " + utils.getNSVersion());
+ console.log("Node: " + process.version);
+ console.log("Electron: v" + process.versions.electron);
+ cli.exit();
+})
+
process.chdir(app.getPath("appData"));
if (cli.hasArgs()) {