diff options
author | 0neGal <mail@0negal.com> | 2022-01-03 02:46:17 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-03 02:46:17 +0100 |
commit | 507953b680546b336082e6d49cbe0c38853b75e9 (patch) | |
tree | f5a3a84e5b9b54c194c35c04c137a5022f346f2c | |
parent | e77ac64018bec2ca98e2264fafd6db02990ef741 (diff) | |
parent | ea8e9ac988561162f8594525ad044cf94f0f1ef4 (diff) | |
download | Viper-507953b680546b336082e6d49cbe0c38853b75e9.tar.gz Viper-507953b680546b336082e6d49cbe0c38853b75e9.zip |
Merge branch 'main' of 0neGal/viper into mod-support
-rw-r--r-- | assets/preview.png | bin | 13623 -> 18511 bytes | |||
-rw-r--r-- | src/utils.js | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/assets/preview.png b/assets/preview.png Binary files differindex d1190c9..33a0586 100644 --- a/assets/preview.png +++ b/assets/preview.png diff --git a/src/utils.js b/src/utils.js index e54a2c1..5206226 100644 --- a/src/utils.js +++ b/src/utils.js @@ -101,6 +101,13 @@ function update() { https.get(body.assets[0].browser_download_url, (res) => { let stream = fs.createWriteStream(settings.zip); res.pipe(stream); + + let received = 0; + res.on("data", (chunk) => { + received += chunk.length; + winLog(lang("gui.update.downloading") + " " + (received / 1024 / 1024).toFixed(1) + "mb"); + }) + stream.on("finish", () => { stream.close(); winLog(lang("gui.update.extracting")); |