mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
Update droplet & other small features, and bump version for v0.3.3 (#212)
* fix: bump version and fix context timeout issues * fix: bump droplet * feat: add appimage auto-detection (#209)
This commit is contained in:
@ -57,7 +57,7 @@ class DownloadContextManager {
|
||||
async cleanup() {
|
||||
for (const key of this.contexts.keys()) {
|
||||
const context = this.contexts.get(key)!;
|
||||
if (context.timeout.getDate() + TIMEOUT < Date.now()) {
|
||||
if (context.timeout.getTime() < Date.now() - TIMEOUT) {
|
||||
this.contexts.delete(key);
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,6 +171,8 @@ class LibraryManager {
|
||||
".sh",
|
||||
// No extension is common for Linux binaries
|
||||
"",
|
||||
// AppImages
|
||||
".appimage",
|
||||
],
|
||||
Windows: [".exe", ".bat"],
|
||||
macOS: [
|
||||
|
||||
Reference in New Issue
Block a user