-
Notifications
You must be signed in to change notification settings - Fork 37
/
Build-ClusterObserver.ps1
29 lines (22 loc) · 2.4 KB
/
Build-ClusterObserver.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
29
$ErrorActionPreference = "Stop"
$Configuration="Release"
[string] $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
try {
Push-Location $scriptPath
Remove-Item $scriptPath\bin\release\ClusterObserver\ -Recurse -Force -EA SilentlyContinue
dotnet publish ClusterObserver\ClusterObserver.csproj -o bin\release\ClusterObserver\linux-x64\self-contained\ClusterObserverType\ClusterObserverPkg\Code -c $Configuration -r linux-x64 --self-contained true
dotnet publish ClusterObserver\ClusterObserver.csproj -o bin\release\ClusterObserver\linux-x64\framework-dependent\ClusterObserverType\ClusterObserverPkg\Code -c $Configuration -r linux-x64 --self-contained false
dotnet publish ClusterObserver\ClusterObserver.csproj -o bin\release\ClusterObserver\win-x64\self-contained\ClusterObserverType\ClusterObserverPkg\Code -c $Configuration -r win-x64 --self-contained true
dotnet publish ClusterObserver\ClusterObserver.csproj -o bin\release\ClusterObserver\win-x64\framework-dependent\ClusterObserverType\ClusterObserverPkg\Code -c $Configuration -r win-x64 --self-contained false
Copy-Item ClusterObserver\PackageRoot\* bin\release\ClusterObserver\linux-x64\self-contained\ClusterObserverType\ClusterObserverPkg\ -Recurse
Copy-Item ClusterObserver\PackageRoot\* bin\release\ClusterObserver\linux-x64\framework-dependent\ClusterObserverType\ClusterObserverPkg\ -Recurse
Copy-Item ClusterObserver\PackageRoot\* bin\release\ClusterObserver\win-x64\self-contained\ClusterObserverType\ClusterObserverPkg\ -Recurse
Copy-Item ClusterObserver\PackageRoot\* bin\release\ClusterObserver\win-x64\framework-dependent\ClusterObserverType\ClusterObserverPkg\ -Recurse
Copy-Item ClusterObserverApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\ClusterObserver\linux-x64\self-contained\ClusterObserverType\ApplicationManifest.xml
Copy-Item ClusterObserverApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\ClusterObserver\linux-x64\framework-dependent\ClusterObserverType\ApplicationManifest.xml
Copy-Item ClusterObserverApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\ClusterObserver\win-x64\self-contained\ClusterObserverType\ApplicationManifest.xml
Copy-Item ClusterObserverApp\ApplicationPackageRoot\ApplicationManifest.xml bin\release\ClusterObserver\win-x64\framework-dependent\ClusterObserverType\ApplicationManifest.xml
}
finally {
Pop-Location
}