Skip to content

Commit a6b1db3

Browse files
committed
fix update urls
1 parent 85e38aa commit a6b1db3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

flutter/lib/desktop/pages/desktop_home_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
432432
"Status",
433433
"${translate("new-version-of-{${bind.mainGetAppNameSync()}}-tip")} (${bind.mainGetNewVersion()}).",
434434
"Click to download", () async {
435-
final Uri url = Uri.parse('https://rustdesk.com/download');
435+
final Uri url = Uri.parse('https://github.com/natfrp/rustdesk/releases/latest');
436436
await launchUrl(url);
437437
}, closeButton: true);
438438
}

flutter/lib/mobile/pages/connection_page.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class _ConnectionPageState extends State<ConnectionPage> {
106106
? const SizedBox(height: 0)
107107
: InkWell(
108108
onTap: () async {
109-
final url = 'https://rustdesk.com/download';
110-
// https://pub.dev/packages/url_launcher#configuration
109+
final url = 'https://github.com/natfrp/rustdesk/releases/latest';
110+
// https://pub.dev/packages/url_launcher#configuration
111111
// https://developer.android.com/training/package-visibility/use-cases#open-urls-custom-tabs
112112
//
113113
// `await launchUrl(Uri.parse(url))` can also run if skip

src/ui/index.tis

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ class UpdateMe: Reactor.Component {
677677
}
678678

679679
event click $(#install-me) {
680-
handler.open_url("https://rustdesk.com/download");
680+
handler.open_url("https://github.com/natfrp/rustdesk/releases/latest");
681681
return;
682682
if (!is_win) {
683683
handler.open_url("https://rustdesk.com");

0 commit comments

Comments
 (0)