feat: 初始化跨平台远程编译服务与 Android Studio 插件

This commit is contained in:
tongtong committed 2026-11-24 14:46:34 +08:00
commit 9eba4556db
44 files changed
+2802

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
$ErrorActionPreference = 'Stop'
# This local port is separate from the Ubuntu server's 8765 tunnel.
ssh -N -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -L 127.0.0.1:18765:127.0.0.1:8765 tt@192.168.5.222
+3
View File
@@ -0,0 +1,3 @@
$ErrorActionPreference = 'Stop'
# Keep this terminal open while the IDE plugin is connected.
ssh -N -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -L 8765:127.0.0.1:8765 tt@192.168.5.224
+6
View File
@@ -0,0 +1,6 @@
param([string]$Data = "$PSScriptRoot\..\server-data")
$ErrorActionPreference = 'Stop'
if (-not $env:REMOTE_BUILD_TOKEN -or $env:REMOTE_BUILD_TOKEN.Length -lt 24) {
throw '请先通过环境变量配置至少 24 字符的 REMOTE_BUILD_TOKEN'
}
& "$PSScriptRoot\..\dist\remotecompile-windows-amd64.exe" -data $Data -tasks ':app:assembleDebug'
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -eu
: "${REMOTE_BUILD_TOKEN:?请先配置 REMOTE_BUILD_TOKEN}"
exec ./remotecompile -data ./server-data -tasks ':app:assembleDebug'