Skip to content

Commit

Permalink
Fix up run directories
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Jul 7, 2024
1 parent 725aa7f commit 00c25a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void install() throws Exception {
Files.writeString(profilesJsonPath, "{}");

execOperations.javaexec(spec -> {
spec.workingDir(installDir);
spec.classpath(getInstaller().getSingleFile());
spec.args("--install-client", installDir.toString());
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void install() throws Exception {
Files.createDirectories(installDir);

execOperations.javaexec(spec -> {
spec.workingDir(installDir);
spec.classpath(getInstaller().getSingleFile());
spec.args("--install-server", installDir.toString());
try {
Expand Down
3 changes: 3 additions & 0 deletions test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ neoForge {
runs {
client {
client()
gameDirectory = file("build/runs/client")
}
server {
server()
gameDirectory = file("build/runs/server")
}
data {
data()
gameDirectory = file("build/runs/data")
}
}
}
Expand Down

0 comments on commit 00c25a5

Please sign in to comment.