1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00

Fixed build dir

This commit is contained in:
M66B 2024-04-29 19:13:47 +02:00
parent 563f2a1951
commit 8c8337270a

View file

@ -473,11 +473,11 @@ tasks.register('upload') {
doLast {
println "\nhttps://bitbucket.org/M66B/fairemail-test/downloads/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk\n"
exec {
workingDir "${getLayout().getBuildDirectory()}"
workingDir "${rootDir}/app/build"
commandLine 'curl',
'-o', '/dev/null',
'-X', 'POST', "https://M66B:" + localProperties.getProperty("bb.pwd", "") + "@api.bitbucket.org/2.0/repositories/M66B/fairemail-test/downloads",
'--form', "files=@${getLayout().getBuildDirectory()}/outputs/apk/" + target.split('-')[0] + "/release/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target.split('-')[0] + "-release.apk;" +
'--form', "files=@${rootDir}/app/build/outputs/apk/" + target.split('-')[0] + "/release/FairEmail-v1." + getVersionCode() + getRevision() + "-" + target.split('-')[0] + "-release.apk;" +
"filename=FairEmail-v1." + getVersionCode() + getRevision() + "-" + target + "-release.apk"
}
}