From a6e9001579252fc9042e3915f6beeba1b9178653 Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Thu, 4 Jun 2020 13:01:15 +0200 Subject: [PATCH] Check if the specified Android release keystore exists (cherry picked from commit 21263a65a9a44fc06ed5311fc600bd72b7f5243f) --- platform/android/export/export.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 5ba7db4a46e..4d5d7029cb6 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1855,6 +1855,13 @@ public: } } + String rk = p_preset->get("keystore/release"); + + if (!rk.empty() && !FileAccess::exists(rk)) { + valid = false; + err += TTR("Release keystore incorrectly configured in the export preset.") + "\n"; + } + if (bool(p_preset->get("custom_template/use_custom_build"))) { String sdk_path = EditorSettings::get_singleton()->get("export/android/custom_build_sdk_path"); if (sdk_path == "") {