Skip to content

Commit

Permalink
build script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trueddd committed Apr 28, 2024
1 parent 1c95113 commit f4239ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ tasks.shadowJar {
exclude(dependency("org.jetbrains.kotlin:kotlin-reflect:.*"))
}
doLast {
val propertiesFile = project.rootProject.file("local.properties")
if (!propertiesFile.exists()) {
return@doLast
}
val targetPath = Properties().apply {
load(project.rootProject.file("local.properties").inputStream())
load(propertiesFile.inputStream())
}.getProperty("target_path") ?: return@doLast
copy {
from(archiveFile)
Expand Down

0 comments on commit f4239ad

Please sign in to comment.