Modified to include its own copy of UnrealEngine
This commit is contained in:
10
build.py
10
build.py
@@ -118,7 +118,7 @@ def autodetect_system_config():
|
||||
config.INTEGRATION = os.path.dirname(os.path.abspath(sys.argv[0]))
|
||||
if not Path(f"{config.INTEGRATION}/Source/Integration").is_dir():
|
||||
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.
|
||||
if sys.platform == "windows":
|
||||
config.OS = "Windows"
|
||||
@@ -166,9 +166,11 @@ def unzip_unreal_engine_and_apply_patch():
|
||||
version = z.namelist()[0].split('/')[0]
|
||||
if not fnmatch.fnmatch(version, 'UnrealEngine-*-release'):
|
||||
sys.exit("UnrealEngine.zip does not contain UnrealEngine-*-release")
|
||||
shell(INTEGRATION, f"rm -rf {version}")
|
||||
shell(INTEGRATION, f"unzip UnrealEngine.zip")
|
||||
shell(INTEGRATION, f"mv {version} UnrealEngine")
|
||||
unrealversion = os.path.join(INTEGRATION, version)
|
||||
shutil.rmtree(UNREALENGINE, ignore_errors=True)
|
||||
shutil.rmtree(unrealversion, ignore_errors=True)
|
||||
shell(INTEGRATION, "unzip UnrealEngine.zip")
|
||||
Path(unrealversion).rename(UNREALENGINE)
|
||||
shell(UNREALENGINE, f"patch -p1 < {INTEGRATION}/EnginePatches/EnginePatch")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user