@@ -246,8 +246,8 @@ function Get-TargetRelease {
246246 if ($version -notmatch ' ^v[0-9A-Za-z][0-9A-Za-z._-]*$' -or $cliVersion -ne $version.Substring (1 )) {
247247 throw ' Signed channel manifest tag and CLI version do not match.'
248248 }
249- if (-not $starterVersion.EndsWith ( ' -SNAPSHOT ' ) ) {
250- throw ' Signed snapshot channel requires a SNAPSHOT starter version.'
249+ if ($starterVersion -notmatch ' ^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z][0-9A-Za-z.-]*)?$ ' ) {
250+ throw ' Signed channel manifest starter version is invalid .'
251251 }
252252 if ($releaseManifestSha256 -notmatch ' ^[0-9a-f]{64}$' ) {
253253 throw ' Signed channel manifest release digest is invalid.'
@@ -525,11 +525,13 @@ function Invoke-ContexaInstaller {
525525 throw ((Select-InstallerText ' Unsupported CONTEXA_INSTALL_ACTION' ' 7KeA7JuQ7ZWY7KeAIOyViuuKlCBDT05URVhBX0lOU1RBTExfQUNUSU9O' ) + ' : ' + $action )
526526 }
527527
528+ Write-Host (' ' + (Select-InstallerText ' Starting Contexa CLI installation.' ' Q29udGV4YSBDTEkg7ISk7LmY66W8IOyLnOyeke2VqeuLiOuLpC4=' ))
528529 $downloadBase = if ([string ]::IsNullOrWhiteSpace($env: CONTEXA_RELEASE_DOWNLOAD_BASE )) { $script :DefaultDownloadBase } else { $env: CONTEXA_RELEASE_DOWNLOAD_BASE.TrimEnd (' /' ) }
529530 $targetRelease = Get-TargetRelease $downloadBase
530531 $version = $targetRelease.ReleaseTag
531532 $expectedCliVersion = $targetRelease.CliVersion
532533 $releaseBase = $downloadBase + ' /' + $version
534+ Write-Host (' ' + ((Select-InstallerText ' Release {0} found. Checking authenticity...' ' 66a066as7IqkIHswfeydhCDtmZXsnbjtlojsirXri4jri6QuIOyLoOuisOyEseydhCDqsoDspp3tlZjripQg7KSR7J6F64uI64ukLi4u' ) -f $version ))
533535
534536 $manifestBytes = Invoke-BoundedDownload ($releaseBase + ' /release-manifest.json' )
535537 $signatureBytes = Invoke-BoundedDownload ($releaseBase + ' /release-manifest.json.sig' )
@@ -591,6 +593,7 @@ function Invoke-ContexaInstaller {
591593 $hadOriginal = Test-Path - LiteralPath $finalPath - PathType Leaf
592594 $replacementStarted = $false
593595 try {
596+ Write-Host (' ' + (Select-InstallerText ' Downloading Contexa CLI and verifying the file...' ' Q29udGV4YSBDTEnrpbwg64uk7Jq066Gc65Oc7ZWY6rOgIO2MjOydvCDrrLTqsrDshLHsnYQg6rKA7Kad7ZWY64qUIOykkeyeheuLiOuLpC4uLg==' ))
594597 $binaryBytes = Invoke-BoundedDownload ($releaseBase + ' /' + $asset.file )
595598 [System.IO.File ]::WriteAllBytes($temporaryPath , $binaryBytes )
596599 Write-InstallerTransaction $markerPath ' DOWNLOADED' $finalPath $backupPath $temporaryPath $expectedCliVersion $hadOriginal
0 commit comments