Files
ykxmz/_build/commit_gitee.ps1
xmz7891 b62ac865ea ykxmz 1.5.0:修复手表端 TLS 证书校验 + MTU 修复网络稳定性
被控端
- 修复 MTU 问题:夹 MSS + 路径 MTU 探测(公网可用率 48% -> 100%)
- 复用 HTTP 连接(免掉每次新建 TLS 的 30% 握手失败)
- 每分钟回头找局域网,自动切回快 400 倍的路径
- 画面心跳帧:静止时省流量,客户端仍知道流是活的
- 锁屏时给出可操作的提示

手表端
- 内置 GTS Root R4 / GlobalSign Root CA,修 SSLHandshakeException
- 连接错误翻译成人话(证书/时间/解析/超时分别提示)
- 经中转连上后用服务器报的地址刷新已配对记录
- 新增局域网连接页面、服务器延迟检测

服务器端
- 支持 chunked 请求体(修每 16 秒一次的连接错乱与大面积 502)
- 网络调优脚本 net-tune.sh(开机自动应用)
- 管理页:批量删除、网络体检、下载区
- 隧道改 HTTP/2 + 双连接

文档
- 许可协议 / 安装前必读 / 安装后须知(作者:小麦子)
2026-10-06 19:01:05 +08:00

98 lines
3.7 KiB
PowerShell
Raw Permalink 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.
# 配置仓库、暂存、提交(git init 已经做过了)
$ErrorActionPreference = "Continue"
$git = "C:\Program Files\Git\bin\git.exe"
$root = "C:\Users\shu\Desktop\deepseekagent\LanRemote"
Set-Location $root
Write-Host "===== 1. git 配置 =====" -ForegroundColor Cyan
& $git config user.name "xmz7891"
& $git config user.email "xmz7891@gitee.com"
& $git config core.quotepath false
& $git config core.autocrlf false
& $git config i18n.commitEncoding utf-8
Write-Host " user.name = $(& $git config user.name)"
Write-Host " user.email = $(& $git config user.email)"
Write-Host ""
Write-Host "===== 2. remote =====" -ForegroundColor Cyan
$url = & $git remote get-url origin 2>$null
if ($LASTEXITCODE -ne 0) {
& $git remote add origin "git@gitee.com:xmz7891/ykxmz.git"
Write-Host " 已添加 origin"
} else {
Write-Host " origin = $url"
}
Write-Host " 当前: $(& $git remote get-url origin)"
Write-Host ""
Write-Host "===== 3. 暂存所有(按 .gitignore 过滤)=====" -ForegroundColor Cyan
& $git add -A
# 用 --name-only -z 拿文件名,避免中文/空格出问题
$raw = & $git -c core.quotepath=false diff --cached --name-only
$files = @($raw | Where-Object { $_ -and $_.Trim() -ne "" })
Write-Host " 暂存文件数: $($files.Count)"
$total = 0
foreach ($f in $files) {
$p = Join-Path $root $f
if (Test-Path -LiteralPath $p -PathType Leaf) {
$total += (Get-Item -LiteralPath $p).Length
}
}
Write-Host " 合计: $([math]::Round($total/1MB,2)) MB"
Write-Host ""
Write-Host "===== 4. 最大的 8 个文件 =====" -ForegroundColor Cyan
$sizes = foreach ($f in $files) {
$p = Join-Path $root $f
if (Test-Path -LiteralPath $p -PathType Leaf) {
[pscustomobject]@{ Name = $f; Size = (Get-Item -LiteralPath $p).Length }
}
}
$sizes | Sort-Object Size -Descending | Select-Object -First 8 |
ForEach-Object { Write-Host (" {0,9:N0} KB {1}" -f ($_.Size/1KB), $_.Name) }
Write-Host ""
Write-Host "===== 5. 确认排除生效 =====" -ForegroundColor Cyan
foreach ($bad in @("dist/", "dist_exe/", "_tests/out_java/", "_tests/received/")) {
$hit = $files | Where-Object { $_ -like "$bad*" }
if ($hit) { Write-Host " ✗ 还在跟踪 $bad ($($hit.Count) 个)" -ForegroundColor Red }
else { Write-Host " ✓ 已排除 $bad" -ForegroundColor Green }
}
Write-Host ""
Write-Host "===== 6. 提交 =====" -ForegroundColor Cyan
$message = @"
ykxmz 1.5.0:修复手表端 TLS 证书校验 + MTU 修复网络稳定性
被控端
- 修复 MTU 问题:夹 MSS + 路径 MTU 探测(公网可用率 48% -> 100%)
- 复用 HTTP 连接(免掉每次新建 TLS 的 30% 握手失败)
- 每分钟回头找局域网,自动切回快 400 倍的路径
- 画面心跳帧:静止时省流量,客户端仍知道流是活的
- 锁屏时给出可操作的提示
手表端
- 内置 GTS Root R4 / GlobalSign Root CA,修 SSLHandshakeException
- 连接错误翻译成人话(证书/时间/解析/超时分别提示)
- 经中转连上后用服务器报的地址刷新已配对记录
- 新增局域网连接页面、服务器延迟检测
服务器端
- 支持 chunked 请求体(修每 16 秒一次的连接错乱与大面积 502)
- 网络调优脚本 net-tune.sh(开机自动应用)
- 管理页:批量删除、网络体检、下载区
- 隧道改 HTTP/2 + 双连接
文档
- 许可协议 / 安装前必读 / 安装后须知(作者:小麦子)
"@
& $git commit -q -m $message
Write-Host " exit=$LASTEXITCODE"
& $git log --oneline -1 2>&1 | ForEach-Object { Write-Host " $_" }
Write-Host ""
Write-Host "===== 7. 公钥(要加到 Gitee 才能推)=====" -ForegroundColor Yellow
Get-Content "$env:USERPROFILE\.ssh\id_ed25519_gitee.pub" | ForEach-Object { Write-Host " $_" }