diff --git a/.github/workflows/build-for-release.yml b/.github/workflows/build-for-release.yml index 8991898..c86968f 100644 --- a/.github/workflows/build-for-release.yml +++ b/.github/workflows/build-for-release.yml @@ -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: | @@ -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: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2238f22..c365479 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | @@ -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: | diff --git a/lib/main.dart b/lib/main.dart index 84c55b1..5c92e38 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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 main() async { await initPrefs(); @@ -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(), ], ),