diff --git a/app/lib/api/open.dart b/app/lib/api/open.dart index 7da0af86d80a..581f3c2db7d3 100644 --- a/app/lib/api/open.dart +++ b/app/lib/api/open.dart @@ -1,5 +1,6 @@ import 'dart:async'; +import 'package:butterfly/main.dart'; import 'package:butterfly/visualizer/asset.dart'; import 'package:butterfly_api/butterfly_api.dart'; import 'package:file_selector/file_selector.dart' as fs; @@ -13,7 +14,7 @@ Future openReleaseNotes() { Uri( scheme: 'https', host: 'go.linwood.dev', - pathSegments: ['butterfly', '2.0']), + pathSegments: ['butterfly', applicationMinorVersion]), mode: LaunchMode.externalApplication); } @@ -23,7 +24,7 @@ Future openHelp(List pageLocation, [String? fragment]) { scheme: 'https', host: 'docs.butterfly.linwood.dev', fragment: fragment, - pathSegments: ['docs', '2.0', ...pageLocation]), + pathSegments: ['docs', applicationMinorVersion, ...pageLocation]), mode: LaunchMode.externalApplication); } diff --git a/app/lib/main.dart b/app/lib/main.dart index d68ff32f2c54..fb982be66d95 100644 --- a/app/lib/main.dart +++ b/app/lib/main.dart @@ -388,3 +388,4 @@ const isNightly = flavor == 'nightly' || flavor == 'dev' || flavor == 'development'; const shortApplicationName = isNightly ? 'Butterfly Nightly' : 'Butterfly'; const applicationName = 'Linwood $shortApplicationName'; +const applicationMinorVersion = '2.1';