feat: progress bar and trying to animate

This commit is contained in:
Zamitto 2024-05-20 13:17:55 -03:00
parent f90dd82cbd
commit 3062b88f4a
4 changed files with 58 additions and 18 deletions

View file

@ -65,11 +65,11 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => {
total: total,
delta: 123,
transferred: (total * i) / 5,
percent: (total * i) / 5 / total,
percent: ((total * i) / 5 / total) * 100,
bytesPerSecond: 4568,
},
});
await sleep(500);
await sleep(1000);
}
sendEvent({ type: "update-downloaded" });