Skip to content

Commit

Permalink
fix potential bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 18, 2024
1 parent 3109a40 commit 7cde6fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ open class PrepareMinecraftAction : Action<BaseBlueberryTask> {
val isWindows = System.getProperty("os.name").lowercase().contains("win")
val exitCode = ProcessBuilder()
.directory(minecraftRoot)
.command(*if (isWindows) arrayOf("gradlew.bat", "genSources", "unzipSourcesJar") else arrayOf("bash", "-c", "./gradlew genSources unzipSourcesJar"))
.command(*if (isWindows) arrayOf("gradlew.bat", "genSources", "unzipSourcesJar", "--info") else arrayOf("bash", "-c", "./gradlew genSources unzipSourcesJar --info"))
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
.start()
.apply {
Expand Down
1 change: 1 addition & 0 deletions work/Minecraft-files/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ tasks {
if (entry.isDirectory) {
file.mkdirs()
} else {
file.parentFile.mkdirs()
file.writeBytes(stream.readAllBytes())
}
}
Expand Down

0 comments on commit 7cde6fb

Please sign in to comment.