aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/preview.pngbin13623 -> 18511 bytes
-rw-r--r--src/utils.js7
2 files changed, 7 insertions, 0 deletions
diff --git a/assets/preview.png b/assets/preview.png
index d1190c9..33a0586 100644
--- a/assets/preview.png
+++ b/assets/preview.png
Binary files differ
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"));