Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TIMER-err committed Sep 22, 2024
1 parent 7d4991e commit fa5bc40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Builder/src/cn/yapeteam/builder/Builder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit fa5bc40

Please sign in to comment.