فهرست منبع

Merge branch 'master' of http://git.501stlegion-a3.com/501st-Aux-Team/501st-Aux-Mod into Casskun/ARC-fix

Casskun 3 سال پیش
والد
کامیت
7df9a7a619
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  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."}