рабочий вариант, но скороть 10 МБит
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#requires -Version 5
|
||||
#requires -Version 5
|
||||
|
||||
param(
|
||||
[string]$RepoRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..")).ProviderPath,
|
||||
@@ -12,6 +12,7 @@ param(
|
||||
[switch]$NoRemotePublish,
|
||||
[string]$TestDockerSshAlias = "test-docker",
|
||||
[string]$TestDockerDownloadPath = "/tmp/rap-web-admin/html/downloads",
|
||||
[string]$TestDockerBackendReleasePath = "/tmp/rap-release-0.2.309-latencyaware",
|
||||
[int]$PreparationRetryDelaySeconds = 0,
|
||||
[string]$PortalVerifyBaseUrl = "http://192.168.200.61:18080",
|
||||
[switch]$SkipPortalVerify
|
||||
@@ -77,7 +78,8 @@ if ($PrintOnly) {
|
||||
-SkipWorkspaceCleanup:$SkipWorkspaceCleanup `
|
||||
-PublishToTestDockerDownloads:$true `
|
||||
-TestDockerSshAlias $TestDockerSshAlias `
|
||||
-TestDockerDownloadPath $TestDockerDownloadPath
|
||||
-TestDockerDownloadPath $TestDockerDownloadPath `
|
||||
-TestDockerBackendReleasePath $TestDockerBackendReleasePath
|
||||
} else {
|
||||
& $buildScript -RepoRoot $RepoRoot -BuildType $BuildType -AndroidHome $AndroidHome -PrintOnly `
|
||||
-SkipWorkspaceCleanup:$SkipWorkspaceCleanup
|
||||
@@ -90,7 +92,8 @@ Run-Step "Сборка и публикация Android APK" {
|
||||
& $buildScript -RepoRoot $RepoRoot -BuildType $BuildType -AndroidHome $AndroidHome -SkipWorkspaceCleanup:$SkipWorkspaceCleanup `
|
||||
-PublishToTestDockerDownloads:$true `
|
||||
-TestDockerSshAlias $TestDockerSshAlias `
|
||||
-TestDockerDownloadPath $TestDockerDownloadPath
|
||||
-TestDockerDownloadPath $TestDockerDownloadPath `
|
||||
-TestDockerBackendReleasePath $TestDockerBackendReleasePath
|
||||
} else {
|
||||
& $buildScript -RepoRoot $RepoRoot -BuildType $BuildType -AndroidHome $AndroidHome -SkipWorkspaceCleanup:$SkipWorkspaceCleanup
|
||||
}
|
||||
@@ -117,7 +120,7 @@ Run-Step "Проверка манифеста веб-панели" {
|
||||
Write-Host "Sha256: $($manifest.published.sha256)"
|
||||
|
||||
if (-not [string]::IsNullOrWhiteSpace($PortalVerifyBaseUrl)) {
|
||||
$manifestUrl = "$PortalVerifyBaseUrl/downloads/rap-android-vpn-build.json?_cb=$(Get-Date -Format 'yyyyMMddHHmmss')"
|
||||
$manifestUrl = "$PortalVerifyBaseUrl/api/v1/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