Added uba_launch script

This commit is contained in:
Edward R. Gonzalez 2024-04-12 11:15:11 -04:00
parent 6ce90995c3
commit 9785f10666
2 changed files with 31 additions and 4 deletions

27
scripts/uba_launch.ps1 Normal file
View File

@ -0,0 +1,27 @@
$path_scripts = $PSScriptRoot
$path_helpers = join-path $path_scripts 'helpers'
$path_root = split-path -Parent -Path $path_scripts
$path_ue = join-path $path_root 'UE'
$UbaAgent = join-path $path_ue 'Engine\Binaries\Win64\UnrealBuildAccelerator\x64\UbaAgent.exe'
$uba_quic = '-quic'
$uba_host = '-host'
$uba_listen = '-listen'
$uba_name = '-name'
$uba_no_poll = '-no_poll'
$uba_store_raw = '-storeraw'
$uba_max_cpu = '-maxcpu'
$uba_mul_cpu = '-mulcpu'
$uba_memwait = '-maxwait'
$uba_zone = '-zone'
$args = @()
# $args += "$uba_host=192.168.1.148"
$args += $uba_listen
# $args += "$uba_mul_cpu=2.0"
# $args += $uba_quic
# $args += $
& $UbaAgent $args

View File

@ -131,14 +131,14 @@ function Process-UnrealDeps
$setup_args += "$fgitdep_cache=$path_gitdeps_cache"
# $setup_args += $fgitdep_dryrun
$path_setup_log = 'setup_log.txt'
# & .\Setup.bat $setup_arg
& .\Setup.bat
# $path_setup_log = 'setup_log.txt'
# $output = Start-Process -FilePath "cmd.exe" -ArgumentList "/c .\Setup.bat $setup_args" -Wait -PassThru -NoNewWindow -RedirectStandardOutput $path_setup_log
# & .\Setup.bat $setup_arg
& .\Setup.bat
# $path_templates = join-path $path_ue 'Templates'
# remove-item $path_templates -Recurse
'Deleted UE templates (grab them manually if want)'
# 'Deleted UE templates (grab them manually if want)'
write-host "Finished processing unreal deps`n"
}