Переглянути джерело

Require Apple Team ID when using notarytool

Adds a requirement that the Team ID is specified when
notarizing with the new notarytool.

Fixes #70307
Patrick Gelvin 2 роки тому
батько
коміт
8495224d13
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      platform/macos/export/export_plugin.cpp

+ 4 - 0
platform/macos/export/export_plugin.cpp

@@ -1937,6 +1937,10 @@ bool EditorExportPlatformMacOS::has_valid_project_configuration(const Ref<Editor
 					}
 				}
 			}
+			if (notary_tool == 2 && p_preset->get("notarization/apple_team_id") == "") {
+				err += TTR("Notarization: Apple Team ID not specified.") + "\n";
+				valid = false;
+			}
 		} else if (notary_tool == 1) {
 			if (p_preset->get("notarization/api_uuid") == "") {
 				err += TTR("Notarization: App Store Connect issuer ID name not specified.") + "\n";