V0.3.0版本优化传输速度和提示
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$Root = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
Write-Host "== QFT v0.3.0-rc3 Windows host verification ==" -ForegroundColor Cyan
|
||||
|
||||
if (Get-Command python -ErrorAction SilentlyContinue) {
|
||||
Write-Host "[1/4] Core protocol/selftests"
|
||||
& python "$Root\scripts\run_all_selftests.py"
|
||||
} else {
|
||||
Write-Warning "python not found; skipping repository Python selftests"
|
||||
}
|
||||
|
||||
Write-Host "[2/4] Windows Rust compile"
|
||||
Push-Location "$Root\windows"
|
||||
try {
|
||||
& cargo check
|
||||
if ($LASTEXITCODE -ne 0) { throw "cargo check failed" }
|
||||
& cargo build --release
|
||||
if ($LASTEXITCODE -ne 0) { throw "cargo build --release failed" }
|
||||
} finally { Pop-Location }
|
||||
|
||||
Write-Host "[3/4] Android unit/build"
|
||||
Push-Location "$Root\android"
|
||||
try {
|
||||
if (!(Test-Path '.\gradle\wrapper\gradle-wrapper.jar')) {
|
||||
Write-Host "Gradle wrapper jar missing; attempting bootstrap..."
|
||||
& powershell -ExecutionPolicy Bypass -File '.\bootstrap-wrapper.ps1'
|
||||
}
|
||||
& .\gradlew.bat :app:testDebugUnitTest :app:assembleDebug --stacktrace
|
||||
if ($LASTEXITCODE -ne 0) { throw "Android Gradle verification failed" }
|
||||
} finally { Pop-Location }
|
||||
|
||||
Write-Host "[4/4] Artifact locations" -ForegroundColor Cyan
|
||||
Write-Host "Windows EXE: $Root\windows\target\release\qft-windows.exe"
|
||||
Write-Host "Android APK: $Root\android\app\build\outputs\apk\debug\app-debug.apk"
|
||||
Write-Host "\nHOST BUILD VERIFICATION PASSED" -ForegroundColor Green
|
||||
Write-Host "Next: perform the physical display/camera and Wi-Fi Direct acceptance matrix in TEST_REPORT.md."
|
||||
Reference in New Issue
Block a user