Modified to include its own copy of UnrealEngine

This commit is contained in:
2025-06-19 20:54:21 -04:00
parent 4fe229ebd1
commit abff2b3fc4

View File

@@ -118,7 +118,7 @@ def autodetect_system_config():
config.INTEGRATION = os.path.dirname(os.path.abspath(sys.argv[0])) config.INTEGRATION = os.path.dirname(os.path.abspath(sys.argv[0]))
if not Path(f"{config.INTEGRATION}/Source/Integration").is_dir(): if not Path(f"{config.INTEGRATION}/Source/Integration").is_dir():
sys.exit(f"Integration repository is not valid: {config.INTEGRATION}") sys.exit(f"Integration repository is not valid: {config.INTEGRATION}")
config.UNREALENGINE = os.path.join(config.INTEGRATION, "UnrealEngine") config.UNREALENGINE = config.INTEGRATION + ".UE"
# Configure other parameters. # Configure other parameters.
if sys.platform == "windows": if sys.platform == "windows":
config.OS = "Windows" config.OS = "Windows"
@@ -166,9 +166,11 @@ def unzip_unreal_engine_and_apply_patch():
version = z.namelist()[0].split('/')[0] version = z.namelist()[0].split('/')[0]
if not fnmatch.fnmatch(version, 'UnrealEngine-*-release'): if not fnmatch.fnmatch(version, 'UnrealEngine-*-release'):
sys.exit("UnrealEngine.zip does not contain UnrealEngine-*-release") sys.exit("UnrealEngine.zip does not contain UnrealEngine-*-release")
shell(INTEGRATION, f"rm -rf {version}") unrealversion = os.path.join(INTEGRATION, version)
shell(INTEGRATION, f"unzip UnrealEngine.zip") shutil.rmtree(UNREALENGINE, ignore_errors=True)
shell(INTEGRATION, f"mv {version} UnrealEngine") shutil.rmtree(unrealversion, ignore_errors=True)
shell(INTEGRATION, "unzip UnrealEngine.zip")
Path(unrealversion).rename(UNREALENGINE)
shell(UNREALENGINE, f"patch -p1 < {INTEGRATION}/EnginePatches/EnginePatch") shell(UNREALENGINE, f"patch -p1 < {INTEGRATION}/EnginePatches/EnginePatch")