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
$Source = Get-Content Setup.bat | |
@" | |
echo Installing prerequisites... | |
start /wait Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /quiet | |
if not exist .\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe goto :no_unreal_version_selector | |
.\Engine\Binaries\Win64\UnrealVersionSelector-Win64-Shipping.exe /register | |
"@ -split '\r?\n|\r' | ? { $_.Length } | % { | |
$Source = $Source -replace ('^(' + [Regex]::Escape($_) + ')$'), "rem ${_}" |
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
# pull engine source | |
$EngineVersion = "4.26.1-release" | |
git init | |
git remote add origin https://github.com/EpicGames/UnrealEngine.git | |
git pull origin $EngineVersion | |
# setup prerequisites (needs admin rights) | |
.\Setup.bat | |
# extract console platform SDKs |
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
&$Env:UE4Path $Env:ProjectPath -Run=GatherText -Config=./Config/Localization/MyProject.ini |
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
;[DerivedDataBackendGraph] ; For source engine build | |
[InstalledDerivedDataBackendGraph] ; For installed engine build (such as launcher version) - pick one | |
Shared=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=19, FoldersToClean=-1, Path=\\Server\DDC, EnvPathOverride=UE-SharedDataCachePath) |
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
Engine\Build\BatchFiles\RunUAT.bat BuildGraph ^ | |
-target="Make Installed Build Win64" ^ | |
-script="Engine/Build/InstalledEngineBuild.xml" ^ | |
-set:HostPlatformOnly=false ^ | |
-set:HostPlatformDDCOnly=false ^ | |
-set:WithWin64=true ^ | |
-set:WithWin32=false ^ | |
-set:WithMac=false ^ | |
-set:WithAndroid=false ^ | |
-set:WithIOS=false ^ |
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
function Register-UnrealEngine | |
{ | |
Get-Content ./Engine/Binaries/Win64/UE4Editor.version | %{$_ -imatch '"BuildId"[\s]*?:[\s]*?"(.*?)"'} | out-null | |
if (!$? -and !(Test-Path Engine) ) { Write-Error "Engine directory not found" ; return } | |
$Guid = "{$($Matches[1].ToString().ToUpper())}" | |
$EnginePath = Resolve-Path . | %{ $_ -replace '\\','/' } | |
New-ItemProperty -Path "HKCU:\Software\Epic Games\Unreal Engine\Builds" -Name $Guid -PropertyType String -Value "$EnginePath" -Force | out-null |