aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-05 17:46:54 +0100
committer0neGal <mail@0negal.com>2024-02-05 17:46:54 +0100
commit3e37726d3b67058f30b150a7e4b5d5ea74b8dbd8 (patch)
treea62f166b0dcde25bf5256faab71fd846f1d0efe6 /src
parent688fb4740a3602cbbc971b869130dbb7857f912b (diff)
downloadViper-3e37726d3b67058f30b150a7e4b5d5ea74b8dbd8.tar.gz
Viper-3e37726d3b67058f30b150a7e4b5d5ea74b8dbd8.zip
switch to unzip-stream over unzipperv1.11.0
unzipper apparently has a bug that causes extracted files to be corrupted, switching to unzip-stream may not be the best long term, but it at least solves this corrupting problem!
Diffstat (limited to 'src')
-rw-r--r--src/modules/mods.js2
-rw-r--r--src/modules/packages.js2
-rw-r--r--src/modules/update.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/mods.js b/src/modules/mods.js
index 9e3e81e..169e7b1 100644
--- a/src/modules/mods.js
+++ b/src/modules/mods.js
@@ -1,6 +1,6 @@
const path = require("path");
const fs = require("fs-extra");
-const unzip = require("unzipper");
+const unzip = require("unzip-stream");
const copy = require("recursive-copy");
const { https } = require("follow-redirects");
const { app, ipcMain, dialog } = require("electron");
diff --git a/src/modules/packages.js b/src/modules/packages.js
index d690824..8df6665 100644
--- a/src/modules/packages.js
+++ b/src/modules/packages.js
@@ -1,6 +1,6 @@
const path = require("path");
const fs = require("fs-extra");
-const unzip = require("unzipper");
+const unzip = require("unzip-stream");
const { app, ipcMain } = require("electron");
const https = require("follow-redirects").https;
diff --git a/src/modules/update.js b/src/modules/update.js
index 658e989..c001ba8 100644
--- a/src/modules/update.js
+++ b/src/modules/update.js
@@ -15,7 +15,7 @@ const is_running = require("./is_running");
console = require("./console");
-const unzip = require("unzipper");
+const unzip = require("unzip-stream");
const https = require("follow-redirects").https;
let update = {};