mirror of
https://github.com/wavetermdev/chocolatey.git
synced 2026-08-05 13:47:23 -07:00
added choco version and update.ps1 on manual packages
This commit is contained in:
+5
-1
@@ -53,6 +53,7 @@ install:
|
||||
- ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version'
|
||||
- ps: $PSVersionTable
|
||||
- git --version
|
||||
- choco --version
|
||||
- ps: |
|
||||
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au
|
||||
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version
|
||||
@@ -81,7 +82,10 @@ build_script:
|
||||
Write-Host ("{0}`n{1}`n" -f ('-'*60), "PACKAGE: $package")
|
||||
$package_dir = ls -recurse | ? { $_.Name -eq "$package.nuspec"} | select -First 1 | % Directory
|
||||
if (!$package_dir) { Write-Warning "Can't find package '$package'"; continue }
|
||||
pushd $package_dir; choco pack; Push-Package; popd
|
||||
pushd $package_dir
|
||||
if (Test-Path update.ps1 -ea 0) { ./update.ps1 }
|
||||
choco pack; Push-Package;
|
||||
popd
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user