1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 07:48:52 -05:00

strip embedded native libraries

This commit is contained in:
Reinhard Pointner 2019-05-28 19:34:55 +07:00
parent cc059609c6
commit b6e7ac7543

View File

@ -5,6 +5,14 @@ def destfile = { r ->
project.references.'jar.classpath'.each { r ->
ant.jar(destfile: destfile(r), compress: 'no') {
zipfileset(src: r) {
// strip embedded native libraries
exclude(name: '**.dll')
exclude(name: '**.so')
exclude(name: '**.jnilib')
exclude(name: '**.dylib')
exclude(name: '**.a')
// strip jar signatures
exclude(name: 'META-INF/MANIFEST.MF')
exclude(name: 'META-INF/INDEX.LIST')
exclude(name: 'META-INF/*.RSA')