浏览代码

Merge pull request #74326 from mjunix/patch-1

macOS export: Fix validation of codesigning certificate password
Rémi Verschelde 2 年之前
父节点
当前提交
02b9a9268a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/macos/export/export_plugin.cpp

+ 1 - 1
platform/macos/export/export_plugin.cpp

@@ -768,7 +768,7 @@ Error EditorExportPlatformMacOS::_code_sign(const Ref<EditorExportPreset> &p_pre
 
 
 			String certificate_file = p_preset->get("codesign/certificate_file");
 			String certificate_file = p_preset->get("codesign/certificate_file");
 			String certificate_pass = p_preset->get("codesign/certificate_password");
 			String certificate_pass = p_preset->get("codesign/certificate_password");
-			if (!certificate_file.is_empty() && !certificate_file.is_empty()) {
+			if (!certificate_file.is_empty() && !certificate_pass.is_empty()) {
 				args.push_back("--p12-file");
 				args.push_back("--p12-file");
 				args.push_back(certificate_file);
 				args.push_back(certificate_file);
 				args.push_back("--p12-password");
 				args.push_back("--p12-password");