Skip to content

Commit b06fb9c

Browse files
authored
Merge pull request #1078 from Spartan322/4.4-fix/mac-binaries
[4.4] Fix erroneous macOS build bundle generation
2 parents 9ee01c9 + 01a0244 commit b06fb9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

platform/macos/SCsub

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def generate_bundle(target, source, env):
1717

1818
if env.editor_build:
1919
# Editor bundle.
20-
prefix = "godot." + env["platform"] + "." + env["target"]
20+
prefix = "redot." + env["platform"] + "." + env["target"]
2121
if env.dev_build:
2222
prefix += ".dev"
2323
if env["precision"] == "double":
@@ -46,9 +46,9 @@ def generate_bundle(target, source, env):
4646
if not os.path.isdir(app_dir + "/Contents/MacOS"):
4747
os.mkdir(app_dir + "/Contents/MacOS")
4848
if target_bin != "":
49-
shutil.copy(target_bin, app_dir + "/Contents/MacOS/Godot")
49+
shutil.copy(target_bin, app_dir + "/Contents/MacOS/Redot")
5050
if "mono" in env.module_version_string:
51-
shutil.copytree(Dir("#bin/GodotSharp").abspath, app_dir + "/Contents/Resources/GodotSharp")
51+
shutil.copytree(Dir("#bin/RedotSharp").abspath, app_dir + "/Contents/Resources/RedotSharp")
5252
version = get_build_version(False)
5353
short_version = get_build_version(True)
5454
with open(Dir("#misc/dist/macos").abspath + "/editor_info_plist.template", "rt", encoding="utf-8") as fin:
@@ -78,9 +78,9 @@ def generate_bundle(target, source, env):
7878

7979
else:
8080
# Template bundle.
81-
app_prefix = "godot." + env["platform"]
82-
rel_prefix = "godot." + env["platform"] + "." + "template_release"
83-
dbg_prefix = "godot." + env["platform"] + "." + "template_debug"
81+
app_prefix = "redot." + env["platform"]
82+
rel_prefix = "redot." + env["platform"] + "." + "template_release"
83+
dbg_prefix = "redot." + env["platform"] + "." + "template_debug"
8484
if env.dev_build:
8585
app_prefix += ".dev"
8686
rel_prefix += ".dev"
@@ -103,9 +103,9 @@ def generate_bundle(target, source, env):
103103
if not os.path.isdir(app_dir + "/Contents/MacOS"):
104104
os.mkdir(app_dir + "/Contents/MacOS")
105105
if rel_target_bin != "":
106-
shutil.copy(rel_target_bin, app_dir + "/Contents/MacOS/godot_macos_release.universal")
106+
shutil.copy(rel_target_bin, app_dir + "/Contents/MacOS/redot_macos_release.universal")
107107
if dbg_target_bin != "":
108-
shutil.copy(dbg_target_bin, app_dir + "/Contents/MacOS/godot_macos_debug.universal")
108+
shutil.copy(dbg_target_bin, app_dir + "/Contents/MacOS/redot_macos_debug.universal")
109109

110110
# ZIP .app bundle.
111111
zip_dir = Dir("#bin/" + (app_prefix + env.extra_suffix + env.module_version_string).replace(".", "_")).abspath

0 commit comments

Comments
 (0)