aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-22 01:23:04 +0200
committer0neGal <mail@0negal.com>2023-07-22 01:23:04 +0200
commitc3652b72b7bb3bcce207139ebc718e15f6746e43 (patch)
treef3ba70e7ccbee09c1f61a7100886be1a75e93c8c /src/index.js
parent73a651b63c29e24774c1ba3952a2d6c977101047 (diff)
downloadViper-c3652b72b7bb3bcce207139ebc718e15f6746e43.tar.gz
Viper-c3652b72b7bb3bcce207139ebc718e15f6746e43.zip
mostly support installing packages through GUI
Install toasts, installing overall, dependencies and so forth, all seem to be fully functional, however more bug testing is probably required to concluce whether that is actually the case or not... This also doesn't break `src/modules/mods.js`, i.e dragging mods in to manually install them still functions the same as always.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index eb258a5..9e2f31f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -19,9 +19,9 @@ const version = require("./modules/version");
const gamepath = require("./modules/gamepath");
const settings = require("./modules/settings");
const requests = require("./modules/requests");
+const packages = require("./modules/packages");
const is_running = require("./modules/is_running");
-const plugins = require("./modules/packages");
var log = console.log;
@@ -113,7 +113,9 @@ function start() {
// install calls
ipcMain.on("install-from-path", (event, path) => {mods.install(path)});
- ipcMain.on("install-from-url", (event, url, author) => {mods.installFromURL(url, author)});
+ ipcMain.on("install-from-url", (event, url, author, package_name, version) => {
+ packages.install(url, author, package_name, version);
+ });
win.webContents.on("dom-ready", () => {
send("mods", mods.list());