Skip to content

Commit

Permalink
fix not having advzip installed
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysdh540 committed Nov 18, 2024
1 parent a10f390 commit 7c7cfff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ plugins {

operator fun String.invoke(): String = rootProject.properties[this] as? String ?: error("Property $this not found")

Zume.auditAndExitEnabled = (rootProject.properties["withAuditAndExit"] as String?).toBoolean()
Zume.auditAndExitEnabled = true || (rootProject.properties["withAuditAndExit"] as String?).toBoolean()

enum class ReleaseChannel(
val suffix: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ abstract class AdvzipTask : ProcessJarTask() {
}

override fun process() {
val jar = inputJar.get().asFile.copyTo(archiveFile.get().asFile, true)

if(try {
ProcessBuilder("advzip", "-V").start().waitFor() != 0
} catch (e: Exception) { true }) {
Expand All @@ -28,7 +30,6 @@ abstract class AdvzipTask : ProcessJarTask() {
return
}

val jar = inputJar.get().asFile.copyTo(archiveFile.get().asFile, true)
val type = level.get()

try {
Expand Down

0 comments on commit 7c7cfff

Please sign in to comment.