-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-all.ps1
28 lines (23 loc) · 925 Bytes
/
build-all.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
param(
[string]$version = ""
)
# call script in cli
nuke Solution_Clean
nuke Shared_Build --SharedLibVersion $version
# find all in Extensions folder
$extensions = Get-ChildItem -Path .\src\Extensions -Directory
#$extensions = @(
# [PSCustomObject]@{ Name = "RestApia.Extensions.ValuesProvider.AzureKeyVault" },
# [PSCustomObject]@{ Name = "RestApia.Extensions.ValuesProvider.CollectionValuesProvider" }
#)
foreach ($extension in $extensions) {
nuke Extension_Build --ExtensionName $extension.Name --ExtensionLibVersion $version
}
# find all nupkg files and store to one folder
$nugetsFolder = ".\.local\nuget"
if (Test-Path .\.local\nuget) {
Remove-Item -Path $nugetsFolder -Recurse -Force
}
New-Item -ItemType Directory -Path $nugetsFolder -Force
$files = Get-ChildItem -Path .\.local\builds -Recurse -Filter *.nupkg
$files | ForEach-Object { Copy-Item $_.FullName -Destination $nugetsFolder -Force }