Skip to content

Commit

Permalink
Bumping version links
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Feb 26, 2024
1 parent 972424c commit aadf5de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/lib/api/open.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -13,7 +14,7 @@ Future<bool> openReleaseNotes() {
Uri(
scheme: 'https',
host: 'go.linwood.dev',
pathSegments: ['butterfly', '2.0']),
pathSegments: ['butterfly', applicationMinorVersion]),
mode: LaunchMode.externalApplication);
}

Expand All @@ -23,7 +24,7 @@ Future<bool> openHelp(List<String> pageLocation, [String? fragment]) {
scheme: 'https',
host: 'docs.butterfly.linwood.dev',
fragment: fragment,
pathSegments: ['docs', '2.0', ...pageLocation]),
pathSegments: ['docs', applicationMinorVersion, ...pageLocation]),
mode: LaunchMode.externalApplication);
}

Expand Down
1 change: 1 addition & 0 deletions app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit aadf5de

Please sign in to comment.