Skip to content

Commit

Permalink
Add "Replace existing signature" to the macOS export (enabled by defa…
Browse files Browse the repository at this point in the history
…ult).

(cherry picked from commit 9e18fce)
  • Loading branch information
bruvzg authored and akien-mga committed Mar 18, 2021
1 parent a0f56b5 commit 15ff752
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/osx/export/export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ void EditorExportPlatformOSX::get_export_options(List<ExportOption> *r_options)
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "codesign/identity", PROPERTY_HINT_PLACEHOLDER_TEXT, "Type: Name (ID)"), ""));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/timestamp"), true));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/hardened_runtime"), true));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/replace_existing_signature"), true));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "codesign/entitlements/custom_file", PROPERTY_HINT_GLOBAL_FILE, "*.plist"), ""));

r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "codesign/entitlements/allow_jit_code_execution"), false));
Expand Down Expand Up @@ -423,6 +424,10 @@ Error EditorExportPlatformOSX::_code_sign(const Ref<EditorExportPreset> &p_prese

args.push_back("-v"); /* provide some more feedback */

if (p_preset->get("codesign/replace_existing_signature")) {
args.push_back("-f");
}

args.push_back(p_path);

String str;
Expand Down

0 comments on commit 15ff752

Please sign in to comment.