Added extract signature task

This commit is contained in:
M66B 2023-10-28 20:09:43 +02:00
parent 3eb689cb1f
commit 83bcba72e0
1 changed files with 7 additions and 0 deletions

View File

@ -403,6 +403,13 @@ task downloadPSL(type: Download) {
overwrite true
}
task extractSignature(type: Exec) {
workingDir "${rootDir}"
// sudo apt install apksigcopier
commandLine 'sh', '-c', 'mkdir -p metadata/eu.faircode.email/signatures/' + getVersionCode() + ' &&' +
'apksigcopier extract --v1-only=auto app/build/outputs/apk/fdroid/release/FairEmail-v1.' + getVersionCode() + getRevision() + '-fdroid-release.apk metadata/eu.faircode.email/signatures/' + getVersionCode()
}
task upload() {
// ./gradlew upload -Ptarget=play-preview
doLast {