Skip to content

Commit 12b58d1

Browse files
authored
Merge pull request #32 from jwittner/dev/exportPackageSupport
Dev/export package support
2 parents efde096 + 92af93f commit 12b58d1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
RootModule = 'UnitySetup'
1515

1616
# Version number of this module.
17-
ModuleVersion = '2.1'
17+
ModuleVersion = '2.2'
1818

1919
# Supported PSEditions
2020
# CompatiblePSEditions = @()

UnitySetup/UnitySetup.psm1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ function Start-UnityEditor
554554
[parameter(Mandatory=$false)]
555555
[string]$ExecuteMethod,
556556
[parameter(Mandatory=$false)]
557+
[string[]]$ExportPackage,
558+
[parameter(Mandatory=$false)]
557559
[string]$OutputPath,
558560
[parameter(Mandatory=$false)]
559561
[string]$LogFile,
@@ -646,6 +648,7 @@ function Start-UnityEditor
646648
if( $BuildTarget ) { $sharedArgs += "-buildTarget", $BuildTarget }
647649
if( $BatchMode ) { $sharedArgs += "-batchmode" }
648650
if( $Quit ) { $sharedArgs += "-quit" }
651+
if( $ExportPackage ) { $sharedArgs += "-exportPackage","$ExportPackage" }
649652

650653
$instanceArgs = @()
651654
foreach( $p in $projectInstances ) {
@@ -711,9 +714,9 @@ function Start-UnityEditor
711714
$process.WaitForExit();
712715
if( $process.ExitCode -ne 0 )
713716
{
714-
if( $LogFile )
717+
if( $LogFile -and (Test-Path $LogFile -Type Leaf) )
715718
{
716-
Get-Content $LogFile | Write-Information
719+
Get-Content $LogFile | ForEach-Object { Write-Information -MessageData $_ -Tags 'Logs' }
717720
}
718721

719722
Write-Error "Unity quit with non-zero exit code"

0 commit comments

Comments
 (0)