diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-18 22:23:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 22:23:20 +0100 |
commit | d0f0fdb6ad9fff7672d2c3da58cc6d7fdbf741ca (patch) | |
tree | a3fc4c443ba387d3f9680a294ca996379c80d633 | |
parent | 8a7e503337127f5d50966bcc4ed16f009bea7212 (diff) | |
parent | 9e18fce9431b25825742e13d03c2839a5060d4ec (diff) |
Merge pull request #47141 from bruvzg/mac_export_force_sign
Add "Replace existing signature" to the macOS export (enabled by default).
-rw-r--r-- | platform/osx/export/export.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index f31d8b9b81..6ac98cae9c 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -159,6 +159,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)); @@ -490,6 +491,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; |