From 9efaf8bae914958a09d29a4cdbf62e345f3e6369 Mon Sep 17 00:00:00 2001 From: Bartlomiej Moskal Date: Thu, 19 May 2022 08:11:08 +0200 Subject: [PATCH] Android: Do not set release flag for signed package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Alexey Edelev --- src/tools/androiddeployqt/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index b7d9024e8f9..b326150ed02 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -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 : 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 : Keystore password.\n" " --storetype : Keystore type.\n"