@@ -1092,7 +1092,7 @@ void EditorExportPlatformMacOS::_code_sign(const Ref<EditorExportPreset> &p_pres
1092
1092
List<String> args;
1093
1093
args.push_back (" sign" );
1094
1094
1095
- if (p_path. get_extension () != " dmg " ) {
1095
+ if (!p_ent_path. is_empty () ) {
1096
1096
args.push_back (" --entitlements-xml-path" );
1097
1097
args.push_back (p_ent_path);
1098
1098
}
@@ -1153,7 +1153,7 @@ void EditorExportPlatformMacOS::_code_sign(const Ref<EditorExportPreset> &p_pres
1153
1153
args.push_back (" runtime" );
1154
1154
}
1155
1155
1156
- if (p_path. get_extension () != " dmg " ) {
1156
+ if (!p_ent_path. is_empty () ) {
1157
1157
args.push_back (" --entitlements" );
1158
1158
args.push_back (p_ent_path);
1159
1159
}
@@ -1237,7 +1237,7 @@ void EditorExportPlatformMacOS::_code_sign_directory(const Ref<EditorExportPrese
1237
1237
}
1238
1238
1239
1239
if (extensions_to_sign.has (current_file.get_extension ())) {
1240
- String ent_path = p_ent_path ;
1240
+ String ent_path;
1241
1241
bool set_bundle_id = false ;
1242
1242
if (sandbox && FileAccess::exists (current_file_path)) {
1243
1243
int ftype = MachO::get_filetype (current_file_path);
@@ -1357,7 +1357,7 @@ Error EditorExportPlatformMacOS::_copy_and_sign_files(Ref<DirAccess> &dir_access
1357
1357
_code_sign_directory (p_preset, p_in_app_path, p_ent_path, p_helper_ent_path, p_should_error_on_non_code_sign);
1358
1358
} else {
1359
1359
if (extensions_to_sign.has (p_in_app_path.get_extension ())) {
1360
- String ent_path = p_ent_path ;
1360
+ String ent_path;
1361
1361
bool set_bundle_id = false ;
1362
1362
if (p_sandbox && FileAccess::exists (p_in_app_path)) {
1363
1363
int ftype = MachO::get_filetype (p_in_app_path);
0 commit comments