From e1b756f81cc578cd57f7165057b4e5085e360186 Mon Sep 17 00:00:00 2001 From: TechnicJelle <22576047+TechnicJelle@users.noreply.github.com> Date: Sun, 8 Sep 2024 07:18:17 +0200 Subject: [PATCH] Make updating internal BlueMap CLI version easier --- lib/main.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index e22ac38..ca1d426 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -10,11 +10,12 @@ import "project_view/project_view.dart"; import "tech_app.dart"; // == Hardcoded BlueMap CLI JAR download URL and hash == -const blueMapCliJarUrl = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/" - "v5.3/BlueMap-5.3-cli.jar"; +const blueMapTag = "5.3"; const blueMapCliJarHash = "a0be9a36325f3caabc6306e9c6dd306aeec464b8abe907e93b6589659c8751f5"; //SHA256 +const blueMapCliJarUrl = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/" + "v$blueMapTag/BlueMap-$blueMapTag-cli.jar"; String get blueMapCliJarName => blueMapCliJarUrl.split("/").last; const String commit = String.fromEnvironment("commit", defaultValue: "development");