Skip to content

Commit

Permalink
add 可执行文件
Browse files Browse the repository at this point in the history
  • Loading branch information
bihe0832 committed Sep 19, 2018
1 parent ccb2dc8 commit 65414c6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Binary file added AXMLPrinter2_zixie.jar
Binary file not shown.
16 changes: 16 additions & 0 deletions AXMLPrinter2_zixie/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
apply plugin: 'java'

jar{
//项目名,也是生成的jar的名字
baseName = "AXMLPrinter2_zixie"
//项目版本号,这部分内容会写进manifest
version = "1.0"
//添加将引用的jar的源码打入最终的jar
from {
(configurations.runtime).collect {
it.isDirectory() ? it : zipTree(it)
}
}
//排除引用的jar中的签名信息
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF'
}


//导出未混淆Jar
task copyJar(dependsOn: "build") {
copy {
Expand Down
Binary file modified GetApkInfo.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions GetApkInfo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ dependencies {
//导出未混淆Jar
task copyJar(dependsOn: "build") {
copy {
from 'build/libs/'+ jar.baseName +'-'+ jar.version +'.jar'
from 'build/libs/'+ jar.baseName + '-' + jar.version +'.jar'
into './../'
rename { String fileName ->
fileName.replace(jar.baseName +'-'+ jar.version +'.jar', jar.baseName +'.jar')
fileName.replace(jar.baseName + '-' + jar.version +'.jar', jar.baseName +'.jar')
}
}
}
Expand Down

0 comments on commit 65414c6

Please sign in to comment.