You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This migrates the development images to a currently supported version of Ubuntu, and fixes image build errors for Unreal Engine 5.3 and newer. #rb none [CL 27703441 by Adam Rehn in ue5-main branch]
13 lines
425 B
Python
13 lines
425 B
Python
#!/usr/bin/env python3
|
|
from pathlib import Path
|
|
import json, sys
|
|
|
|
# Parse the Unreal Engine version information
|
|
engineRoot = Path(sys.argv[1])
|
|
versionFile = engineRoot / "Engine" / "Build" / "Build.version"
|
|
versionDetails = json.loads(versionFile.read_text("utf-8"))
|
|
|
|
# Determine the name of the Editor target based on the version
|
|
target = "UE4Editor" if versionDetails["MajorVersion"] == 4 else "UnrealEditor"
|
|
print(target)
|