feat(rtos): 首次发布手机真机调试桥与S2探针
这个提交包含在:
当前提交
2f0f4b9702
59 个文件已更改
+4303
没有与搜索条件相匹配的文件
@@ -0,0 +1,19 @@
|
||||
param(
|
||||
[string]$JavaHome = $env:JAVA_HOME,
|
||||
[string]$AndroidSdk = "$env:LOCALAPPDATA\Android\Sdk"
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if ([string]::IsNullOrWhiteSpace($JavaHome)) { throw 'Set JAVA_HOME or pass -JavaHome with a JDK 17 installation.' }
|
||||
$env:JAVA_HOME = $JavaHome
|
||||
$env:ANDROID_HOME = $AndroidSdk
|
||||
if (!(Test-Path -LiteralPath (Join-Path $JavaHome 'bin\java.exe'))) { throw 'Pass -JavaHome with a JDK 17 installation.' }
|
||||
Push-Location $PSScriptRoot
|
||||
try {
|
||||
& '.\gradlew.bat' --no-daemon assembleDebug lintDebug
|
||||
if ($LASTEXITCODE -ne 0) { throw "Android build failed ($LASTEXITCODE)" }
|
||||
$apk = Join-Path $PSScriptRoot 'app\build\outputs\apk\debug\app-debug.apk'
|
||||
$dest = Join-Path $PSScriptRoot 'artifacts\RTOS-Phone-Bridge-0.2.0-debug.apk'
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $dest) | Out-Null
|
||||
Copy-Item -LiteralPath $apk -Destination $dest -Force
|
||||
Get-FileHash -LiteralPath $dest -Algorithm SHA256
|
||||
} finally { Pop-Location }
|
||||
在新工单中引用
屏蔽一个用户