Skip to content

Commit

Permalink
feat: release version number (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainwo authored Sep 14, 2024
1 parent a5f1a7e commit 95ac948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- run: flutter doctor -v
- run: flutter pub get
- run: dart fix --apply --code=unnecessary_final
- run: flutter build -v ${{ matrix.build_target }} --release
- run: flutter build -v ${{ matrix.build_target }} --dart-define=APPLICATION_VERSION=${{ github.ref_name }} --release
- name: Compress build for Linux
if: matrix.target == 'Linux'
run: tar czf $GITHUB_WORKSPACE/yatta_${{ matrix.build_target }}${{ matrix.asset_extension }} *
Expand Down
8 changes: 7 additions & 1 deletion lib/page/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@ class WelcomeMessage extends StatelessWidget {
cursor: SystemMouseCursors.click,
child: HyperlinkButton(
onPressed: () {
showLicensePage(context: context);
showLicensePage(
context: context,
applicationVersion: const String.fromEnvironment(
'APPLICATION_VERSION',
defaultValue: 'development',
),
);
},
child: const Text(
'License',
Expand Down

0 comments on commit 95ac948

Please sign in to comment.