mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
4bc0a09f41
commit
3d2348243e
|
@ -364,16 +364,16 @@ task downloadPSL(type: Download) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task upload() {
|
task upload() {
|
||||||
// ./gradlew upload -Ptype=play -Ptitle=preview && ./gradlew upload -Ptype=github -Ptitle=update
|
// ./gradlew upload -Ptarget=play-preview
|
||||||
doLast {
|
doLast {
|
||||||
println "\nhttps://bitbucket.org/M66B/fairemail-test/downloads/FairEmail-v1." + getVersionCode() + getRevision() + "-" + type + "-" + title + "-release.apk\n"
|
println "\nhttps://bitbucket.org/M66B/fairemail-test/downloads/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk\n"
|
||||||
exec {
|
exec {
|
||||||
workingDir "${buildDir}"
|
workingDir "${buildDir}"
|
||||||
commandLine 'curl',
|
commandLine 'curl',
|
||||||
'-o', '/dev/null',
|
'-o', '/dev/null',
|
||||||
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
|
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
|
||||||
'--form', "files=@${buildDir}/outputs/apk/" + type + "/release/FairEmail-v1." + getVersionCode() + getRevision() + "-" + type + "-release.apk;" +
|
'--form', "files=@${buildDir}/outputs/apk/" + target.split('-')[0] + "/release/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target.split('-')[0] + "-release.apk;" +
|
||||||
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + type + "-" + title + "-release.apk"
|
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue