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());