File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 14
14
RootModule = ' UnitySetup'
15
15
16
16
# Version number of this module.
17
- ModuleVersion = ' 2.1 '
17
+ ModuleVersion = ' 2.2 '
18
18
19
19
# Supported PSEditions
20
20
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change @@ -554,6 +554,8 @@ function Start-UnityEditor
554
554
[parameter (Mandatory = $false )]
555
555
[string ]$ExecuteMethod ,
556
556
[parameter (Mandatory = $false )]
557
+ [string []]$ExportPackage ,
558
+ [parameter (Mandatory = $false )]
557
559
[string ]$OutputPath ,
558
560
[parameter (Mandatory = $false )]
559
561
[string ]$LogFile ,
@@ -646,6 +648,7 @@ function Start-UnityEditor
646
648
if ( $BuildTarget ) { $sharedArgs += " -buildTarget" , $BuildTarget }
647
649
if ( $BatchMode ) { $sharedArgs += " -batchmode" }
648
650
if ( $Quit ) { $sharedArgs += " -quit" }
651
+ if ( $ExportPackage ) { $sharedArgs += " -exportPackage" , " $ExportPackage " }
649
652
650
653
$instanceArgs = @ ()
651
654
foreach ( $p in $projectInstances ) {
@@ -711,9 +714,9 @@ function Start-UnityEditor
711
714
$process.WaitForExit ();
712
715
if ( $process.ExitCode -ne 0 )
713
716
{
714
- if ( $LogFile )
717
+ if ( $LogFile -and ( Test-Path $LogFile - Type Leaf) )
715
718
{
716
- Get-Content $LogFile | Write-Information
719
+ Get-Content $LogFile | ForEach-Object { Write-Information - MessageData $_ - Tags ' Logs ' }
717
720
}
718
721
719
722
Write-Error " Unity quit with non-zero exit code"
You can’t perform that action at this time.
0 commit comments