livedesk 0.1.609 → 0.1.610
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/electron/update-manager.mjs +10 -1
- package/package.json +1 -1
|
@@ -398,7 +398,16 @@ export function createProductUpdateManager({
|
|
|
398
398
|
if (!candidate || connectedUpdaters.has(candidate)) return;
|
|
399
399
|
candidate.autoDownload = false;
|
|
400
400
|
candidate.autoInstallOnAppQuit = true;
|
|
401
|
-
if (feed.url)
|
|
401
|
+
if (feed.url) {
|
|
402
|
+
// R2 exposes one byte range per read. Keep current clients on simple
|
|
403
|
+
// single-range differential requests; the Worker retains bounded
|
|
404
|
+
// multipart compatibility for already-installed older versions.
|
|
405
|
+
candidate.setFeedURL({
|
|
406
|
+
provider: 'generic',
|
|
407
|
+
url: feed.url,
|
|
408
|
+
useMultipleRangeRequest: false
|
|
409
|
+
});
|
|
410
|
+
}
|
|
402
411
|
for (const eventName of forwardedUpdaterEvents) {
|
|
403
412
|
candidate.on(eventName, (...args) => {
|
|
404
413
|
// A force-retired updater keeps this harmless listener so a late
|