diff options
author | 0neGal <mail@0negal.com> | 2022-05-12 01:34:07 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-05-12 01:34:07 +0200 |
commit | 72f85aa2297f5c46d029f1e25193aa98ced884c3 (patch) | |
tree | 44815685bbd4c9f5514b015616d0c2629b5e2274 /src/utils.js | |
parent | 108c7b97100d2a40e82f8196109c99d1d59b59ee (diff) | |
download | Viper-72f85aa2297f5c46d029f1e25193aa98ced884c3.tar.gz Viper-72f85aa2297f5c46d029f1e25193aa98ced884c3.zip |
initial draft for supporting dependencies
This should allow you to install packages that have dependencies,
however maybe not with the best UI/UX experience, as currently there's
only an English localization, and we also install dependencies even if
the dependency is already installed.
Diffstat (limited to 'src/utils.js')
-rw-r--r-- | src/utils.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/utils.js b/src/utils.js index eb9f195..e63297e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -720,14 +720,6 @@ const mods = { let stream = fs.createWriteStream(modlocation); res.pipe(stream); - // let received = 0; - // // Progress messages, we should probably switch this to - // // percentage instead of how much is downloaded. - // res.on("data", (chunk) => { - // received += chunk.length; - // ipcMain.emit("ns-update-event", lang("gui.update.downloading") + " " + (received / 1024 / 1024).toFixed(1) + "mb"); - // }) - stream.on("finish", () => { stream.close(); mods.install(modlocation); |