Files
ykxmz/_build/commit_150.ps1
T
xmz7891 8111fb6d97 ykxmz 1.5.0:手表端 TLS 证书兼容 + 三端分开打包 + 下载区
手表端
- 内置 GTS Root R4 / GlobalSign Root CA
  修 SSLHandshakeException: Chain validation failed
- 连接错误翻译成人话:证书 / 时间 / 解析 / 超时分别给提示
- 经中转连上后用服务器报的地址刷新已配对记录
- 版本号 1.3.0 -> 1.5.0(AndroidManifest 之前漏改了)

服务器端
- 支持 chunked 请求体,修每 16 秒一次的连接错乱与大面积 502
- 网络调优 net-tune.sh(开机自动应用)
- 新增下载区,管理页加下载卡片
- 隧道改 HTTP/2 + 双连接

打包方式变更
- 从一个合并 zip 改成三个独立产物:
    ykxmz-agent-*.zip    被控端
    ykxmz-server-*.zip   服务器端
    ykxmz-watch-*.apk    控制端
2026-10-06 23:08:05 +08:00

72 lines
3.2 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 提交 1.5.0 的全部改动
$ErrorActionPreference = "Continue"
$git = "C:\Program Files\Git\bin\git.exe"
$root = "C:\Users\shu\Desktop\deepseekagent\LanRemote"
Set-Location $root
Write-Host "===== 1. 暂存 =====" -ForegroundColor Cyan
& $git add -A 2>&1 | Out-Null
$files = @(& $git -c core.quotepath=false diff --cached --name-only |
Where-Object { $_ -and $_.Trim() -ne "" })
Write-Host " 改动文件数: $($files.Count)"
$files | Select-Object -First 25 | ForEach-Object { Write-Host " $_" }
if ($files.Count -gt 25) { Write-Host " …还有 $($files.Count - 25) 个" }
Write-Host ""
Write-Host "===== 2. 确认没有大文件混进来 =====" -ForegroundColor Cyan
$big = foreach ($f in $files) {
$p = Join-Path $root ($f -replace '/','\')
if (Test-Path -LiteralPath $p -PathType Leaf) {
$len = (Get-Item -LiteralPath $p).Length
if ($len -gt 1MB) { [pscustomobject]@{ Name = $f; MB = [math]::Round($len/1MB,2) } }
}
}
if ($big) { $big | ForEach-Object { Write-Host " ⚠ $($_.MB) MB $($_.Name)" -ForegroundColor Yellow } }
else { Write-Host " ✓ 没有超过 1MB 的文件" -ForegroundColor Green }
Write-Host ""
Write-Host "===== 3. 提交 =====" -ForegroundColor Cyan
$msg = @"
ykxmz 1.5.0:手表端 TLS 证书兼容 + 三端分开打包 + 下载区
手表端
- 内置 GTS Root R4 / GlobalSign Root CA
修 SSLHandshakeException: Chain validation failed
(廉价手表系统根证书库常缺 GTS Root R4)
- 连接错误翻译成人话:证书 / 时间 / 解析 / 超时分别给提示
- 经中转连上后用服务器报的地址刷新已配对记录(原来一直显示旧 IP)
- 版本号 1.3.0 -> 1.5.0(AndroidManifest 之前漏改了)
服务器端
- 支持 chunked 请求体:修每 16 秒一次的连接错乱与大面积 502
- 网络调优 net-tune.sh:夹 MSS 1400 + 路径 MTU 探测
(公网可用率 48% -> 100%,实测 15 分钟 180/180)
做成开机服务 lanremote-nettune.service,并会自动重建隧道
- 新增下载区:GET /v1/downloads 列表 + GET /download/<文件>
只允许白名单后缀、严格校验文件名(挡目录穿越)
管理页加下载卡片
- 隧道改 HTTP/2 + 双连接(QUIC 在这条线路上可用率只有 48%)
- 网络体检、批量删除设备
打包方式变更
- 原来是三个部分合成一个 zip,现在**分成三个独立产物**:
ykxmz-agent-1.5.0.zip 被控端
ykxmz-server-1.5.0.zip 服务器端
ykxmz-watch-1.5.0.apk 控制端(直接给 APK,不打 zip)
三个包/文件都带上许可协议 / 安装前必读 / 安装后须知
文档
- 许可协议 / 安装前必读 / 安装后须知(作者:小麦子)
"@
& $git commit -q -m $msg
Write-Host " exit=$LASTEXITCODE"
& $git log --oneline 2>&1 | Select-Object -First 3 | ForEach-Object { Write-Host " $_" }
Write-Host ""
Write-Host "===== 4. 公钥(加到这里才能推)=====" -ForegroundColor Yellow
Write-Host " 打开 https://gitee.com/profile/sshkeys" -ForegroundColor White
Write-Host " 把下面这一整行粘进去:" -ForegroundColor White
Get-Content "$env:USERPROFILE\.ssh\id_ed25519_gitee.pub" | ForEach-Object {
Write-Host " $_" -ForegroundColor Green
}