Small "hack" to make AutoUpdater download from custom url#145
Small "hack" to make AutoUpdater download from custom url#145Maxetto wants to merge 3 commits intobryangerlach:masterfrom
Conversation
|
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. It only changes the download url, all the update check logic still follows the official rustdesk versions. |
|
https://github.com/rustdesk/rustdesk/blob/965cb704ecc7fcb408416949e9e68bba646d43d2/flutter/lib/desktop/widgets/update_progress.dart#L24 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. If we all feel happy about it, I am more than welcome to write a git patch file or sed commands. |
Resp: “It does work on Android, but it’s still in an experimental stage.” |
|
Hi @bryangerlach , is this pull request something you're able to consider? |
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 >.<