Skip to content

Commit

Permalink
fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryachko committed Nov 11, 2022
1 parent be8259b commit 6f8a147
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ abstract class NdkBinaryFixTask : DefaultTask() {

@get:OutputFile
val outputFile: File
get() = File("${inputFile.get().asFile.absolutePath}.so")
get() = inputFile.get().asFile.let {
File(it.parentFile, "lib${it.name}.so")
}

@get:Internal
val into: String
Expand All @@ -39,7 +41,7 @@ abstract class NdkBinaryFixTask : DefaultTask() {
fun run() {
Files.copy(
inputFile.get().asFile.toPath(),
File("${inputFile.get().asFile.absolutePath}.so").toPath(),
outputFile.toPath(),
StandardCopyOption.REPLACE_EXISTING
)
}
Expand Down

0 comments on commit 6f8a147

Please sign in to comment.