Android: Do not set release flag for signed package

Before this change, signing package by androiddeployqt automatically
implied the --release option.
It is possible to create both debug and release packages when signing on
Android, so we shouldn't be enforcing this restriction on Qt app builds.

Commit removes setting releasePackage option, when processing the --sign
argument in androiddeployqt.

Task-number: QTBUG-103281
Change-Id: Id40a41255e51d6820b44f078667dc8318a90bbc5
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Bartlomiej Moskal 2022-05-19 08:11:08 +02:00
parent 7466422e9c
commit 9efaf8bae9

View File

@ -429,12 +429,10 @@ Options parseOptions()
fprintf(stdout,
"Using package signing path and alias values found from the "
"environment variables.\n");
options.releasePackage = true;
options.keyStore = keyStore;
options.keyStoreAlias = storeAlias;
}
} else {
options.releasePackage = true;
options.keyStore = arguments.at(++i);
options.keyStoreAlias = arguments.at(++i);
}
@ -573,8 +571,7 @@ void printHelp()
" package will be signed with a debug key.\n"
"\n"
" --sign <url/to/keystore> <alias>: Signs the package with the\n"
" specified keystore, alias and store password. Also implies the\n"
" --release option.\n"
" specified keystore, alias and store password.\n"
" Optional arguments for use with signing:\n"
" --storepass <password>: Keystore password.\n"
" --storetype <type>: Keystore type.\n"