fork to handle jnilib files

This commit is contained in:
Craig Raw 2020-08-04 14:29:08 +02:00
parent bc610ca100
commit 0e6d288814
3 changed files with 14 additions and 1 deletions

13
.gitignore vendored Normal file
View file

@ -0,0 +1,13 @@
.idea
.gradle
*iml
build
/*.properties
out
*.log
build-*.sh
.DS_Store
.jar
.class
target
SignPackage.jar

0
build.sh Normal file → Executable file
View file

View file

@ -68,7 +68,7 @@ class SignPackage(val args: Array<String>) {
scanRecursive(file, cmd) scanRecursive(file, cmd)
} else if (file.name.endsWith(".jar")) { } else if (file.name.endsWith(".jar")) {
ZipFile(file).entries().asSequence().forEach { zipEntry -> ZipFile(file).entries().asSequence().forEach { zipEntry ->
if (zipEntry.name.endsWith(".dylib")) { if (zipEntry.name.endsWith(".dylib") || zipEntry.name.endsWith(".jnilib")) {
// Extract, sign and compress the dylib file. // Extract, sign and compress the dylib file.
println("${file.absolutePath}: ${zipEntry.name}") println("${file.absolutePath}: ${zipEntry.name}")
val dylibFile = File(tmpDir, File(zipEntry.name).name) val dylibFile = File(tmpDir, File(zipEntry.name).name)