Explorar el Código

build script fixes

Hobnob hace 3 años
padre
commit
e504abfb0b
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      build.ps1

+ 7 - 1
build.ps1

@@ -6,6 +6,8 @@ param(
 $pboProject = (Get-ItemProperty "HKCU:\Software\Mikero\pboProject\").exe
 $output = $(Join-Path $(Get-Location) "@501st Community Auxiliary Mod")
 $mods = @("501st_Helmets","RD501_Compositions","RD501_Droids","RD501_Droid_Dispenser","RD501_EMP","RD501_Helmets","RD501_Jumppack","RD501_Main","RD501_Markers","RD501_Particle_Effects","RD501_RDS","RD501_Units","RD501_Vehicles","RD501_Vehicle_Weapons","RD501_Weapons","RD501_Zeus","VenMK2")
+$succeded = @()
+$failed = @()
 
 ForEach ($mod in $mods)
 {
@@ -29,11 +31,15 @@ ForEach ($mod in $mods)
         if(Test-Path $target)
         {
             Write-Output "  Successfully Built $mod."
+            $succeded += $mod
         }
         else 
         {
             Write-Output "  $mod Build Failed."
-            Write-Output $(Get-Content "P:\temp\$mod.packing.log")
+            $failed += $mod
         }
     }
 }
+if($succeded.Count -ne 0){ Write-Output "Succeded: ", $succeded}
+if($failed.Count -ne 0){ Write-Output "Failed: ", $failed}
+if($succeded.Count -eq 0 -and $failed.Count -eq 0){ Write-Output "Nothing to build."}