diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18f660d --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +.idea +.gradle +*iml +build +/*.properties +out +*.log +build-*.sh +.DS_Store +.jar +.class +target +SignPackage.jar \ No newline at end of file diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 diff --git a/src/main/java/com/dgunia/signpackage/Main.kt b/src/main/java/com/dgunia/signpackage/Main.kt index 16a9094..bb8e39b 100644 --- a/src/main/java/com/dgunia/signpackage/Main.kt +++ b/src/main/java/com/dgunia/signpackage/Main.kt @@ -68,7 +68,7 @@ class SignPackage(val args: Array) { scanRecursive(file, cmd) } else if (file.name.endsWith(".jar")) { 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. println("${file.absolutePath}: ${zipEntry.name}") val dylibFile = File(tmpDir, File(zipEntry.name).name)