mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-05 00:21:49 +01:00
Maybe fix license task for Windows
This commit is contained in:
parent
31015504f4
commit
ec9d592cf1
@ -29,6 +29,14 @@ ext {
|
|||||||
df.setTimeZone(TimeZone.getTimeZone("UTC"))
|
df.setTimeZone(TimeZone.getTimeZone("UTC"))
|
||||||
return df.format(new Date())
|
return df.format(new Date())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getGradleWrapper = {
|
||||||
|
if (System.properties['os.name'].toLowerCase().contains('windows')) {
|
||||||
|
return '../gradlew.bat'
|
||||||
|
} else {
|
||||||
|
return '../gradlew'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
licenseReport {
|
licenseReport {
|
||||||
@ -312,13 +320,13 @@ task copyResources(type: Copy) {
|
|||||||
task licenseReportPreBuild(type: Exec) {
|
task licenseReportPreBuild(type: Exec) {
|
||||||
switch (getGradle().getStartParameter().getTaskRequests().toString()) {
|
switch (getGradle().getStartParameter().getTaskRequests().toString()) {
|
||||||
case ~/.*Standard.*/:
|
case ~/.*Standard.*/:
|
||||||
commandLine '../gradlew', 'licenseStandardReleaseReport'
|
commandLine getGradleWrapper(), 'licenseStandardReleaseReport'
|
||||||
break
|
break
|
||||||
case ~/.*Fdroid.*/:
|
case ~/.*Fdroid.*/:
|
||||||
commandLine '../gradlew', 'licenseFdroidReleaseReport'
|
commandLine getGradleWrapper(), 'licenseFdroidReleaseReport'
|
||||||
break
|
break
|
||||||
case ~/.*Dev.*/:
|
case ~/.*Dev.*/:
|
||||||
commandLine '../gradlew', 'licenseDevReleaseReport'
|
commandLine getGradleWrapper(), 'licenseDevReleaseReport'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user