aboutsummaryrefslogtreecommitdiff
path: root/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js7
1 files changed, 7 insertions, 0 deletions
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"));