From 0e6d2888146d8739ab03aef75e26d4c90ec25597 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 4 Aug 2020 14:29:08 +0200 Subject: [PATCH] fork to handle jnilib files --- .gitignore | 13 +++++++++++++ build.sh | 0 src/main/java/com/dgunia/signpackage/Main.kt | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .gitignore mode change 100644 => 100755 build.sh 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)