diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2022-07-16 21:44:36 -0500 | 
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2022-07-22 18:40:59 -0500 | 
| commit | 8b5c744f9528b09b8d16faf95be85f96f142a1ad (patch) | |
| tree | cd5166198591232597601b318ba831f6e9a18c81 | |
| parent | fe929d4787b2b11390891fb03da1dda78b18eb65 (diff) | |
Update export template names for Windows, Mac, and Linux
| -rw-r--r-- | editor/editor_export.cpp | 4 | ||||
| -rw-r--r-- | platform/linuxbsd/export/export_plugin.cpp | 2 | ||||
| -rw-r--r-- | platform/macos/export/export_plugin.cpp | 10 | ||||
| -rw-r--r-- | platform/windows/export/export_plugin.cpp | 2 | 
4 files changed, 9 insertions, 9 deletions
diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index 46907bdf8a..b09339ce3a 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1884,8 +1884,8 @@ bool EditorExportPlatformPC::can_export(const Ref<EditorExportPreset> &p_preset,  	// Look for export templates (first official, and if defined custom templates).  	bool use64 = p_preset->get("binary_format/64_bits"); -	bool dvalid = exists_export_template(get_template_file_name("debug", use64 ? "64" : "32"), &err); -	bool rvalid = exists_export_template(get_template_file_name("release", use64 ? "64" : "32"), &err); +	bool dvalid = exists_export_template(get_template_file_name("debug", use64 ? "x86_64" : "x86_32"), &err); +	bool rvalid = exists_export_template(get_template_file_name("release", use64 ? "x86_64" : "x86_32"), &err);  	if (p_preset->get("custom_template/debug") != "") {  		dvalid = FileAccess::exists(p_preset->get("custom_template/debug")); diff --git a/platform/linuxbsd/export/export_plugin.cpp b/platform/linuxbsd/export/export_plugin.cpp index 4e14920e79..d54e07d8a5 100644 --- a/platform/linuxbsd/export/export_plugin.cpp +++ b/platform/linuxbsd/export/export_plugin.cpp @@ -84,7 +84,7 @@ void EditorExportPlatformLinuxBSD::set_extension(const String &p_extension, cons  }  String EditorExportPlatformLinuxBSD::get_template_file_name(const String &p_target, const String &p_arch) const { -	return "linux_x11_" + p_arch + "_" + p_target; +	return "linux_" + p_target + "." + p_arch;  }  List<String> EditorExportPlatformLinuxBSD::get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const { diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index 8cb69997d9..fd0781ac50 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -766,7 +766,7 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &p  	int ret = unzGoToFirstFile(src_pkg_zip); -	String binary_to_use = "godot_macos_" + String(p_debug ? "debug" : "release") + ".64"; +	String binary_to_use = "godot_macos_" + String(p_debug ? "debug" : "release") + ".universal";  	String pkg_name;  	if (String(ProjectSettings::get_singleton()->get("application/config/name")) != "") { @@ -1064,19 +1064,19 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &p  		}  		if (data.size() > 0) { -			if (file.find("/data.mono.macos.64.release_debug/") != -1) { +			if (file.find("/data.mono.macos.release_debug.universal/") != -1) {  				if (!p_debug) {  					ret = unzGoToNextFile(src_pkg_zip);  					continue; // skip  				} -				file = file.replace("/data.mono.macos.64.release_debug/", "/GodotSharp/"); +				file = file.replace("/data.mono.macos.release_debug.universal/", "/GodotSharp/");  			} -			if (file.find("/data.mono.macos.64.release/") != -1) { +			if (file.find("/data.mono.macos.release.universal/") != -1) {  				if (p_debug) {  					ret = unzGoToNextFile(src_pkg_zip);  					continue; // skip  				} -				file = file.replace("/data.mono.macos.64.release/", "/GodotSharp/"); +				file = file.replace("/data.mono.macos.release.universal/", "/GodotSharp/");  			}  			if (file.ends_with(".dylib")) { diff --git a/platform/windows/export/export_plugin.cpp b/platform/windows/export/export_plugin.cpp index 16c67345e0..45bfc761fe 100644 --- a/platform/windows/export/export_plugin.cpp +++ b/platform/windows/export/export_plugin.cpp @@ -104,7 +104,7 @@ Error EditorExportPlatformWindows::export_project(const Ref<EditorExportPreset>  }  String EditorExportPlatformWindows::get_template_file_name(const String &p_target, const String &p_arch) const { -	return "windows_" + p_arch + "_" + p_target + ".exe"; +	return "windows_" + p_target + "_" + p_arch + ".exe";  }  List<String> EditorExportPlatformWindows::get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const {  |