Browse Source

Check if the specified Android release keystore exists

Marcus Brummer 5 years ago
parent
commit
21263a65a9
1 changed files with 7 additions and 0 deletions
  1. 7 0
      platform/android/export/export.cpp

+ 7 - 0
platform/android/export/export.cpp

@@ -1786,6 +1786,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"))) {
 		if (bool(p_preset->get("custom_template/use_custom_build"))) {
 			String sdk_path = EditorSettings::get_singleton()->get("export/android/custom_build_sdk_path");
 			String sdk_path = EditorSettings::get_singleton()->get("export/android/custom_build_sdk_path");
 			if (sdk_path == "") {
 			if (sdk_path == "") {