From fa5bc40d1c4d77d4864d9de2d45deee8c8615934 Mon Sep 17 00:00:00 2001 From: TIMER_err Date: Sun, 22 Sep 2024 11:49:03 +0800 Subject: [PATCH] workflow --- .github/workflows/build.yml | 4 ++++ Builder/src/cn/yapeteam/builder/Builder.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9290e45..8c2ecc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,10 @@ jobs: run: ${{ steps.setup-jdk8.outputs.path }}/bin/java -jar builder.jar release 1.12.2 - name: build 1.18.1 run: ${{ steps.setup-jdk17.outputs.path }}/bin/java -jar builder.jar release 1.18.1 + - name: list + run: | + ls + ls out/production - name: pack run: ${{ steps.setup-jdk8.outputs.path }}/bin/java -jar builder.jar release - name: Upload JAR to Release diff --git a/Builder/src/cn/yapeteam/builder/Builder.java b/Builder/src/cn/yapeteam/builder/Builder.java index 3c994e0..0d70c4b 100644 --- a/Builder/src/cn/yapeteam/builder/Builder.java +++ b/Builder/src/cn/yapeteam/builder/Builder.java @@ -322,7 +322,7 @@ public static void main(String[] args) throws Exception { configuration.libraryJars.add(new ClassPathEntry(file, false)); }); else { - Arrays.stream(Objects.requireNonNull(new File(System.getProperty("java.home").replace("/jre", ""), "jre/lib").listFiles())) + Arrays.stream(Objects.requireNonNull(new File(System.getProperty("java.home").replace("\\", "/").replace("/jre", ""), "jre/lib").listFiles())) .filter(file -> file.getName().endsWith(".jar")) .forEach(file -> { System.out.println(file.getAbsolutePath());