Skip to content

Commit

Permalink
clean-up pre-proguard jar after proguard finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolij committed Apr 30, 2024
1 parent 5b434a6 commit 3c90dc1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ val JAVA_HOME = System.getProperty("java.home")
fun applyProguard(outputJar: File, minecraftConfigs: List<MinecraftConfig>) {
val inputJar = outputJar.copyTo(
outputJar.parentFile.resolve("${outputJar.nameWithoutExtension}_.jar"), true)
// inputJar.deleteOnExit()
inputJar.deleteOnExit()

val proguardCommand = ArrayList<String>()
proguardCommand.addAll(arrayOf(
Expand Down Expand Up @@ -207,7 +207,7 @@ fun applyProguard(outputJar: File, minecraftConfigs: List<MinecraftConfig>) {
} catch(ex: Exception) {
throw IllegalStateException("ProGuard failed for $outputJar", ex)
} finally {
//inputJar.delete()
inputJar.delete()
}
}

Expand Down

0 comments on commit 3c90dc1

Please sign in to comment.