@@ -23,10 +23,10 @@ def generate_bundle(target, source, env):
2323 prefix += ".double"
2424
2525 # Lipo editor executable.
26- target_bin = lipo (bin_dir + "/" + prefix , env .extra_suffix )
26+ target_bin = lipo (bin_dir + "/" + prefix , env .extra_suffix + env . module_version_string )
2727
2828 # Assemble .app bundle and update version info.
29- app_dir = Dir ("#bin/" + (prefix + env .extra_suffix ).replace ("." , "_" ) + ".app" ).abspath
29+ app_dir = Dir ("#bin/" + (prefix + env .extra_suffix + env . module_version_string ).replace ("." , "_" ) + ".app" ).abspath
3030 templ = Dir ("#misc/dist/macos_tools.app" ).abspath
3131 if os .path .exists (app_dir ):
3232 shutil .rmtree (app_dir )
@@ -35,6 +35,8 @@ def generate_bundle(target, source, env):
3535 os .mkdir (app_dir + "/Contents/MacOS" )
3636 if target_bin != "" :
3737 shutil .copy (target_bin , app_dir + "/Contents/MacOS/Godot" )
38+ if "mono" in env .module_version_string :
39+ shutil .copytree (Dir ("#bin/GodotSharp" ).abspath , app_dir + "/Contents/Resources/GodotSharp" )
3840 version = get_build_version (False )
3941 short_version = get_build_version (True )
4042 with open (Dir ("#misc/dist/macos" ).abspath + "/editor_info_plist.template" , "rt" , encoding = "utf-8" ) as fin :
@@ -76,8 +78,8 @@ def generate_bundle(target, source, env):
7678 dbg_prefix += ".double"
7779
7880 # Lipo template executables.
79- rel_target_bin = lipo (bin_dir + "/" + rel_prefix , env .extra_suffix )
80- dbg_target_bin = lipo (bin_dir + "/" + dbg_prefix , env .extra_suffix )
81+ rel_target_bin = lipo (bin_dir + "/" + rel_prefix , env .extra_suffix + env . module_version_string )
82+ dbg_target_bin = lipo (bin_dir + "/" + dbg_prefix , env .extra_suffix + env . module_version_string )
8183
8284 # Assemble .app bundle.
8385 app_dir = Dir ("#bin/macos_template.app" ).abspath
@@ -93,7 +95,7 @@ def generate_bundle(target, source, env):
9395 shutil .copy (dbg_target_bin , app_dir + "/Contents/MacOS/godot_macos_debug.universal" )
9496
9597 # ZIP .app bundle.
96- zip_dir = Dir ("#bin/" + (app_prefix + env .extra_suffix ).replace ("." , "_" )).abspath
98+ zip_dir = Dir ("#bin/" + (app_prefix + env .extra_suffix + env . module_version_string ).replace ("." , "_" )).abspath
9799 shutil .make_archive (zip_dir , "zip" , root_dir = bin_dir , base_dir = "macos_template.app" )
98100 shutil .rmtree (app_dir )
99101
0 commit comments