Small "hack" to make AutoUpdater download from custom url #145
Reference in New Issue
Block a user
Delete Branch "Maxetto/updater-hack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not the best approach, but as long as you have set the correct custom url for download updates and it points directly to a file it will make the new autoupdater introduced in 1.4.0 download the correct version.
Previously it would download the official unmodified version, breaking the custom values the client had.
A proper way would be to use a patch file, but I have no idea how >.<
Does this not work on linux or android? I haven't look into it at all. Does this change how the client checks for updates, or is it still checking based on official rustdesk versions?
For now it seems only Windows and MacOS have this feature. Android I can confirm it still open a webpage with the url you set, Linux I don't know.
The PR that added the feature was that: https://github.com/rustdesk/rustdesk/pull/11618
It only changes the download url, all the update check logic still follows the official rustdesk versions.
965cb704ec/flutter/lib/desktop/widgets/update_progress.dart (L24)downloadUrl = '$downloadUrl/$downloadFile';Actually maybe it could work by just replacing this line instead of messing with many lines of flutter_ffi.rs 🤔
Hi,
Sorry for open the issue #149 without checking this PR. Thanks for all your workings.
However, I feel that proposal in 149 might provide a more seamless experience yet not potentially breaks future builds as well.
If we all feel happy about it, I am more than welcome to write a git patch file or sed commands.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.