-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5.3.0 compat: build Editor target for first-run setup
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/ue4docker/dockerfiles/ue4-minimal/linux/print-editor-target.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/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) |