Skip to content

Commit c9407bf

Browse files
committed
[21857] Make autoupdater faster when downloading a new LC version
This patch ensures the autoupdater uses libUrlDownloadToFile when downloading a new LC version. Previously, <load url> was used, which is OK for small files, but painfully slow for large files
1 parent cd7d1b7 commit c9407bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builder/installer/installeruiupdatedownloadcardbehavior.livecodescript

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private command downloadNewVersion pUrl, pCheckSum, pDestination
5757
put urlEncode(the last item of pURL) into the last item of pURL
5858
set the itemDel to comma
5959
libURLSetStatusCallback "downloadLatestRevisionUpdates", the long id of me
60-
load URL pURL with message "downloadLatestRevisionComplete"
60+
libURLDownloadToFile pUrl, sFileName, "downloadLatestRevisionComplete"
6161
else
6262

6363
-- The file already exists execute it
@@ -77,7 +77,6 @@ end downloadNewVersion
7777
--
7878
on downloadLatestRevisionComplete pURL, pStatus
7979
if pStatus is among the words "downloaded cached" then
80-
put URL the uRemoteURL of me into URL ("binfile:" & sFileName)
8180
launchDownloadedInstaller
8281
if the result is not empty then
8382
set the uError of card "Finish" to the result

docs/notes/bugfix-21857.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Make autoupdater faster when downloading a new LiveCode version

0 commit comments

Comments
 (0)