mirror of
https://github.com/revanced/smali.git
synced 2025-05-24 02:22:20 +02:00
Don't attempt to create the smali.jar/baksmali.jar symlinks on windows.
Unsurprisingly, ant.symlink is unsupported on windows.
This commit is contained in:
parent
b0295be60c
commit
318954d56b
@ -56,9 +56,11 @@ jar {
|
||||
}
|
||||
|
||||
doLast {
|
||||
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
|
||||
ant.symlink(link: file("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task proguard(type: JavaExec, dependsOn: jar) {
|
||||
def outFile = jar.destinationDir.getPath() + '/' + jar.baseName + '-' + jar.version + '-small' + '.' + jar.extension
|
||||
|
@ -142,9 +142,11 @@ jar {
|
||||
}
|
||||
|
||||
doLast {
|
||||
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
|
||||
ant.symlink(link: file("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
processResources.inputs.property('version', version)
|
||||
processResources.expand('version': version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user