Skip to content

Commit

Permalink
Show BMGUI and BlueMap versions better
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed Sep 19, 2024
1 parent 68825c6 commit 33e08a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-for-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: flutter pub get

- name: Build
run: flutter build linux --release --dart-define=commit=${{ github.event.inputs.TAG_NAME }}
run: flutter build linux --release --dart-define=version=${{ github.event.inputs.TAG_NAME }}

- name: Prepare for upload
run: |
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
run: flutter pub get

- name: Build
run: flutter build windows --release --dart-define=commit=${{ github.event.inputs.TAG_NAME }}
run: flutter build windows --release --dart-define=version=${{ github.event.inputs.TAG_NAME }}

- name: Prepare for upload
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: flutter pub get

- name: Build
run: flutter build linux --release --dart-define=commit=$GITHUB_SHA_SHORT
run: flutter build linux --release --dart-define=version=$GITHUB_SHA_SHORT

- name: Prepare for upload
run: |
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
run: flutter pub get

- name: Build
run: flutter build windows --release --dart-define=commit=$env:GITHUB_SHA_SHORT
run: flutter build windows --release --dart-define=version=$env:GITHUB_SHA_SHORT

- name: Prepare for upload
run: |
Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const blueMapCliJarUrl = "https://github.com/BlueMap-Minecraft/BlueMap/releases/
"v$blueMapTag/BlueMap-$blueMapTag-cli.jar";
String get blueMapCliJarName => blueMapCliJarUrl.split("/").last;

const String commit = String.fromEnvironment("commit", defaultValue: "development");
const String version = String.fromEnvironment("version", defaultValue: "development");

Future<void> main() async {
await initPrefs();
Expand Down Expand Up @@ -57,7 +57,7 @@ class MyHomePage extends ConsumerWidget {
appBar: AppBar(
title: Text(title),
actions: [
const Text("$blueMapTag:$commit"),
const Text("Version: $version\nBlueMap: $blueMapTag"),
if (projectDirectory != null) const CloseProjectButton(),
],
),
Expand Down

0 comments on commit 33e08a5

Please sign in to comment.