Skip to content

Commit

Permalink
fix linux builds?
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 18, 2024
1 parent 5263bb3 commit b226948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ open class PrepareMinecraftAction : Action<BaseBlueberryTask> {
val isWindows = System.getProperty("os.name").lowercase().contains("win")
val exitCode = ProcessBuilder()
.directory(minecraftRoot)
.command(if (isWindows) "gradlew.bat" else "gradlew", "genSources", "unzipSourcesJar")
.command(*if (isWindows) arrayOf("gradlew.bat", "genSources", "unzipSourcesJar") else arrayOf("bash", "-c", "gradlew genSources unzipSourcesJar"))
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
.start()
.apply {
Expand Down

0 comments on commit b226948

Please sign in to comment.