You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Mono/macOS: Separate data dir into frameworks and resources for codesigning
Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
(cherry picked from commit 42eb09ddcc)
This commit is contained in:
committed by
Rémi Verschelde
parent
138d5121eb
commit
4d06a5c2b0
@@ -180,16 +180,16 @@ private:
|
|||||||
|
|
||||||
#ifdef OSX_ENABLED
|
#ifdef OSX_ENABLED
|
||||||
if (!DirAccess::exists(data_editor_tools_dir)) {
|
if (!DirAccess::exists(data_editor_tools_dir)) {
|
||||||
data_editor_tools_dir = exe_dir.plus_file("../Frameworks/GodotSharp/Tools");
|
data_editor_tools_dir = exe_dir.plus_file("../Resources/GodotSharp/Tools");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DirAccess::exists(data_editor_prebuilt_api_dir)) {
|
if (!DirAccess::exists(data_editor_prebuilt_api_dir)) {
|
||||||
data_editor_prebuilt_api_dir = exe_dir.plus_file("../Frameworks/GodotSharp/Api");
|
data_editor_prebuilt_api_dir = exe_dir.plus_file("../Resources/GodotSharp/Api");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DirAccess::exists(data_mono_root_dir)) {
|
if (!DirAccess::exists(data_mono_root_dir)) {
|
||||||
data_mono_etc_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/etc");
|
data_mono_etc_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/etc");
|
||||||
data_mono_lib_dir = exe_dir.plus_file("../Frameworks/GodotSharp/Mono/lib");
|
data_mono_lib_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/lib");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -219,11 +219,11 @@ private:
|
|||||||
#ifdef OSX_ENABLED
|
#ifdef OSX_ENABLED
|
||||||
if (!DirAccess::exists(data_mono_root_dir)) {
|
if (!DirAccess::exists(data_mono_root_dir)) {
|
||||||
data_mono_etc_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/etc");
|
data_mono_etc_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/etc");
|
||||||
data_mono_lib_dir = exe_dir.plus_file("../Frameworks/GodotSharp/Mono/lib");
|
data_mono_lib_dir = exe_dir.plus_file("../Resources/GodotSharp/Mono/lib");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DirAccess::exists(data_game_assemblies_dir)) {
|
if (!DirAccess::exists(data_game_assemblies_dir)) {
|
||||||
data_game_assemblies_dir = exe_dir.plus_file("../Frameworks/GodotSharp/Assemblies");
|
data_game_assemblies_dir = exe_dir.plus_file("../Resources/GodotSharp/Assemblies");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -634,14 +634,14 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
|
|||||||
ret = unzGoToNextFile(src_pkg_zip);
|
ret = unzGoToNextFile(src_pkg_zip);
|
||||||
continue; // skip
|
continue; // skip
|
||||||
}
|
}
|
||||||
file = file.replace("/data.mono.osx.64.release_debug/", "/data_" + pkg_name + "/");
|
file = file.replace("/data.mono.osx.64.release_debug/", "/GodotSharp/");
|
||||||
}
|
}
|
||||||
if (file.find("/data.mono.osx.64.release/") != -1) {
|
if (file.find("/data.mono.osx.64.release/") != -1) {
|
||||||
if (p_debug) {
|
if (p_debug) {
|
||||||
ret = unzGoToNextFile(src_pkg_zip);
|
ret = unzGoToNextFile(src_pkg_zip);
|
||||||
continue; // skip
|
continue; // skip
|
||||||
}
|
}
|
||||||
file = file.replace("/data.mono.osx.64.release/", "/data_" + pkg_name + "/");
|
file = file.replace("/data.mono.osx.64.release/", "/GodotSharp/");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.ends_with(".dylib")) {
|
if (file.ends_with(".dylib")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user