From fc7f96d53608c372cb53ebac1af9435d854fe0e8 Mon Sep 17 00:00:00 2001 From: Gravit'a <12893402+gravit0@users.noreply.github.com> Date: Sat, 15 Apr 2023 13:59:32 +0700 Subject: [PATCH] [FIX] launcher-pack in Windows --- .../pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java index 4772615b..c5a63fbf 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/PrepareBuildTask.java @@ -45,7 +45,7 @@ public Path process(Path inputFile) throws IOException { throw new RuntimeException(ex); } })) { - var map = stream.collect(Collectors.toMap(k -> server.launcherPack.relativize(k).toString(), (v) -> v)); + var map = stream.collect(Collectors.toMap(k -> server.launcherPack.relativize(k).toString().replace("\\", "/"), (v) -> v)); server.launcherBinary.files.putAll(map); } UnpackHelper.unpack(IOHelper.getResourceURL("Launcher.jar"), result);