From 99f9561be78b9c5c26f147b1c79c71e160c3d0aa Mon Sep 17 00:00:00 2001 From: Ricardo Buring Date: Tue, 18 Feb 2025 16:54:49 +0100 Subject: [PATCH] When code signing, specify which keystore is not found --- platform/android/export/export_plugin.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 458f850b0b2..44e2ff0b17f 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -2912,7 +2912,11 @@ Error EditorExportPlatformAndroid::sign_apk(const Ref &p_pre } if (!FileAccess::exists(keystore)) { - add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not find keystore, unable to export.")); + if (p_debug) { + add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not find debug keystore, unable to export.")); + } else { + add_message(EXPORT_MESSAGE_WARNING, TTR("Code Signing"), TTR("Could not find release keystore, unable to export.")); + } return ERR_FILE_CANT_OPEN; } @@ -3442,7 +3446,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Refget_resource_dir().path_join(debug_keystore).simplify_path(); } if (!FileAccess::exists(debug_keystore)) { - add_message(EXPORT_MESSAGE_ERROR, TTR("Code Signing"), TTR("Could not find keystore, unable to export.")); + add_message(EXPORT_MESSAGE_ERROR, TTR("Code Signing"), TTR("Could not find debug keystore, unable to export.")); return ERR_FILE_CANT_OPEN; } @@ -3458,7 +3462,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Refget_resource_dir().path_join(release_keystore).simplify_path(); } if (!FileAccess::exists(release_keystore)) { - add_message(EXPORT_MESSAGE_ERROR, TTR("Code Signing"), TTR("Could not find keystore, unable to export.")); + add_message(EXPORT_MESSAGE_ERROR, TTR("Code Signing"), TTR("Could not find release keystore, unable to export.")); return ERR_FILE_CANT_OPEN; }