mirror of
https://github.com/sparrowwallet/signpackage.git
synced 2024-12-25 13:26:45 +00:00
fork to handle jnilib files
This commit is contained in:
parent
bc610ca100
commit
0e6d288814
3 changed files with 14 additions and 1 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal 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
0
build.sh
Normal file → Executable 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)
|
||||||
|
|
Loading…
Reference in a new issue