Skip to content

Commit

Permalink
HRINT-3675 Make build.ps1 work with older powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenshadow21 committed Jun 26, 2024
1 parent 6d643f7 commit 1ccb44a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/checkPrerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function CheckPrerequisites () {
throw "dotnet not found in path."
}

CheckLastExitCode
#CheckLastExitCode

if ($PSVersionTable.PSVersion.Major -lt 5) {
throw "Incompatible Powershell version. Must be 5 or later."
Expand Down
3 changes: 2 additions & 1 deletion scripts/sign.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ function SignFile( $projectDir, $filePath, $dryRun) {
foreach ($time in $timeservers) {
try {
Write-Host "Command: $signTool sign /f `"$installerCert`" /p `"PASSWORD`" /d `"RavenDB`" /du `"https://ravendb.net`" /t `"$time`" /v /debug `"$filePath`""
exec { & $signTool sign /f "$installerCert" /p "$certPassword" /fd SHA256 /d "RavenDB" /du "https://ravendb.net" /tr "$time" /td SHA256 /v /debug "$filePath" }
& $signTool sign /f "$installerCert" /p "$certPassword" /fd SHA256 /d "RavenDB" /du "https://ravendb.net" /tr "$time" /td SHA256 /v /debug "$filePath"
CheckLastExitCode
return
}
catch {
Write-Error $_
continue
}
}
Expand Down

0 comments on commit 1ccb44a

Please sign in to comment.