Skip to content

Commit

Permalink
πŸ› Change windows dll dependency order
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Jan 26, 2025
1 parent 9f64c07 commit 0a53911
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/craftground/MinecraftEnv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ tasks.register('compileCpp', Exec) {
def releaseOutput = new File("Release/native-lib.dll")
def targetDir = new File("./native-lib.dll") // Copy to the project root

if (debugOutput.exists()) {
if (releaseOutput.exists()) {
copy {
from debugOutput
from releaseOutput
into targetDir.parentFile
}
println "Copied ${debugOutput} to ${targetDir}"
} else if (releaseOutput.exists()) {
println "Copied ${releaseOutput} to ${targetDir}"
} else if (debugOutput.exists()) {
copy {
from releaseOutput
from debugOutput
into targetDir.parentFile
}
println "Copied ${releaseOutput} to ${targetDir}"
println "Copied ${debugOutput} to ${targetDir}"
} else {
throw new RuntimeException("Cannot find the built native library")
}
Expand Down

0 comments on commit 0a53911

Please sign in to comment.