55# 3. copy the files under installer directory to ..\..\kubernetes\windows\amalogswindows
66# 4. Builds the livenessprobe cpp and copy the executable to the under directory ..\..\kubernetes\windows\amalogswindows
77
8- $dotnetcoreframework = " net6 .0"
8+ $dotnetcoreframework = " net8 .0"
99
1010Write-Host (" Building Certificate generator code..." )
1111$currentdir = $PSScriptRoot
@@ -80,7 +80,7 @@ Write-Host("Successfully added dotnet packages") -ForegroundColor Green
8080dotnet build -f $dotnetcoreframework
8181Write-Host (" Building Certificate generator code and ..." ) - ForegroundColor Green
8282
83- Write-Host (" Publish release and win10 -x64 binaries of certificate generator code ..." )
83+ Write-Host (" Publish release and win -x64 binaries of certificate generator code ..." )
8484$isCDPxEnvironment = $false
8585if (! [string ]::IsNullOrEmpty([System.Environment ]::GetEnvironmentVariable(" IsCDPXBuildMachine" , " PROCESS" )) -or
8686! [string ]::IsNullOrEmpty([System.Environment ]::GetEnvironmentVariable(" IsCDPXBuildMachine" , " USER" )) -or
@@ -90,14 +90,14 @@ if (![string]::IsNullOrEmpty([System.Environment]::GetEnvironmentVariable("IsCDP
9090}
9191if ($isCDPxEnvironment ) {
9292 Write-Host (" running on CDPX build machine so setting --no-restore since there is no n/w connectivity during build" )
93- dotnet publish - c Release - r win10 - x64 -- no- restore
93+ dotnet publish - c Release - r win - x64 -- self - contained true -- no- restore
9494} else {
95- dotnet publish - c Release - r win10 - x64
95+ dotnet publish - c Release - r win - x64 -- self - contained true
9696}
9797
9898Write-Host (" Successfully published certificate generator code binaries" ) - ForegroundColor Green
9999
100- $certreleasebinpath = Join-Path - PATH $certsrcdir - ChildPath " bin\Release\$dotnetcoreframework \win10 -x64\publish\*.*"
100+ $certreleasebinpath = Join-Path - PATH $certsrcdir - ChildPath " bin\Release\$dotnetcoreframework \win -x64\publish\*.*"
101101if ($false -eq (Test-Path - Path $certreleasebinpath )) {
102102 Write-Host (" certificate release bin path doesnt exist : " + $certreleasebinpath + " " ) - ForegroundColor Red
103103 exit 1
0 commit comments