Refactor RDP proxy handling and update related tests
This commit is contained in:
@@ -102,7 +102,7 @@ if ($SkipPortalVerify) {
|
||||
}
|
||||
|
||||
Run-Step "Проверка манифеста веб-панели" {
|
||||
$manifestPath = Join-Path $RepoRoot "web-admin\deploy\html\downloads\rap-android-rdp-vpn-build.json"
|
||||
$manifestPath = Join-Path $RepoRoot "web-admin\deploy\html\downloads\rap-android-vpn-build.json"
|
||||
if (-not (Test-Path $manifestPath)) {
|
||||
Fail "Локальный манифест не найден: $manifestPath"
|
||||
}
|
||||
@@ -117,7 +117,7 @@ Run-Step "Проверка манифеста веб-панели" {
|
||||
Write-Host "Sha256: $($manifest.published.sha256)"
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace($PortalVerifyBaseUrl)) {
|
||||
$manifestUrl = "$PortalVerifyBaseUrl/downloads/rap-android-rdp-vpn-build.json?_cb=$(Get-Date -Format 'yyyyMMddHHmmss')"
|
||||
$manifestUrl = "$PortalVerifyBaseUrl/downloads/rap-android-vpn-build.json?_cb=$(Get-Date -Format 'yyyyMMddHHmmss')"
|
||||
try {
|
||||
$remoteManifest = Invoke-RestMethod -Uri $manifestUrl -Method Get
|
||||
if (-not $remoteManifest.version -or -not $remoteManifest.version.name -or $remoteManifest.version.name -ne $manifest.version.name) {
|
||||
|
||||
Reference in New Issue
Block a user