GASATHON/scripts/regen_project.ps1

26 lines
727 B
PowerShell
Raw Normal View History

2024-04-12 09:08:06 -07:00
Clear-Host
$path_scripts = $PSScriptRoot
$path_helpers = join-path $path_scripts 'helpers'
$path_root = split-path -Parent -Path $path_scripts
$path_ue = join-path '../../Surgo' 'UE'
$path_project = join-path $path_root 'Project'
2024-04-12 11:49:22 -07:00
$uproject = join-path $path_project 'Gasa.uproject'
2024-04-12 09:08:06 -07:00
$UBT = join-path $path_ue 'Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe'
$fubt_project = '-project'
$fubt_projectfiles = '-projectfiles'
$fubt_game = '-game'
$fubt_engine = '-engine'
$fubt_progress = '-progress'
$ubt_args = @()
$ubt_args += $fubt_projectfiles
$ubt_args += "$fubt_project=$uproject"
$ubt_args += $fubt_game
$ubt_args += $fubt_engine
$ubt_args += $fubt_progress
& $UBT $ubt_args