Chocolatey verbose build

This commit is contained in:
Michael Grafnetter 2019-05-09 15:35:30 +02:00
parent 8880d9bc56
commit 3c7e730fe1
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ Generates a Chocolatey package. Requires Chocolatey to be installed.
#> #>
#Requires -Version 5 #Requires -Version 5
$repoRoot = Join-Path $PSScriptRoot '..\' $repoRoot = Join-Path $PSScriptRoot '..\' -Resolve
$nuspecPath = Join-Path $repoRoot 'Src\DSInternals.PowerShell.Chocolatey\DSInternals.nuspec' $nuspecPath = Join-Path $repoRoot 'Src\DSInternals.PowerShell.Chocolatey\DSInternals.nuspec'
$outputDir = Join-Path $repoRoot 'Build\packages\Chocolatey' $outputDir = Join-Path $repoRoot 'Build\packages\Chocolatey'
$moduleDir = Join-Path $repoRoot 'Build\bin\Release\DSInternals' $moduleDir = Join-Path $repoRoot 'Build\bin\Release\DSInternals'
@ -15,11 +15,11 @@ $catalogIsValid = (Test-Path -Path $catalogPath) -and
(Test-FileCatalog -CatalogFilePath $catalogPath -Path $moduleDir) -eq [System.Management.Automation.CatalogValidationStatus]::Valid (Test-FileCatalog -CatalogFilePath $catalogPath -Path $moduleDir) -eq [System.Management.Automation.CatalogValidationStatus]::Valid
if(-not $catalogIsValid) if(-not $catalogIsValid)
{ {
New-FileCatalog -CatalogFilePath $catalogPath -Path $moduleDir -CatalogVersion 1.0 -ErrorAction Stop | Out-Null New-FileCatalog -CatalogFilePath $catalogPath -Path $moduleDir -CatalogVersion 1.0 -ErrorAction Stop
} }
# Create target folder # Create target folder
mkdir $outputDir -Force | Out-Null mkdir $outputDir -Force
# Pack using Chocolatey # Pack using Chocolatey
choco pack $nuspecPath --outputdirectory $outputDir choco pack $nuspecPath --outputdirectory $outputDir --timeout 60 --confirm --verbose