Skip to content

Commit

Permalink
fix: Do not allow updates on macOS (bluecherrydvr#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Mar 3, 2024
2 parents 3ec05ae + 32cba6f commit fd9e7b0
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 456 deletions.
5 changes: 4 additions & 1 deletion lib/providers/update_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,15 @@ class UpdateManager extends UnityProvider {
if (file.existsSync()) return file;
} else {
throw UnsupportedError(
'Unsupported platform. Only Windows and Linux are supported',
'Unsupported platform. Only Windows and Linux are supported.',
);
}
return null;
}

String get downloadMacOSRedirect =>
'https://github.com/bluecherrydvr/unity?tab=readme-ov-file#download';

/// Downloads the latest version executable.
Future<void> download(String version) async {
assert(
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/servers/add_server_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AddServerInfoScreen extends StatelessWidget {
const SizedBox(height: 16.0),
Row(mainAxisAlignment: MainAxisAlignment.end, children: [
Link(
uri: Uri.https('www.bluecherrydvr.com', '/'),
uri: Uri.https('bluecherrydvr.com', '/'),
builder: (context, open) {
return TextButton(
onPressed: open,
Expand All @@ -82,7 +82,7 @@ class AddServerInfoScreen extends StatelessWidget {
const SizedBox(width: 8.0),
Link(
uri: Uri.https(
'www.bluecherrydvr.com',
'bluecherrydvr.com',
'/product/v3license/',
),
builder: (context, open) {
Expand Down
Loading

0 comments on commit fd9e7b0

Please sign in to comment.