Files
ykxmz/_build/commit_gitee.ps1
T
xmz7891 b705216e4a ykxmz 1.5.0锛氫慨澶嶆墜琛ㄧ TLS 璇佷功鏍¢獙 + MTU 淇缃戠粶绋冲畾鎬?
琚帶绔?- 淇 MTU 闂锛氬す MSS + 璺緞 MTU 鎺㈡祴锛堝叕缃戝彲鐢ㄧ巼 48% -> 100%锛?- 澶嶇敤 HTTP 杩炴帴锛堝厤鎺夋瘡娆℃柊寤?TLS 鐨?30% 鎻℃墜澶辫触锛?- 姣忓垎閽熷洖澶存壘灞€鍩熺綉锛岃嚜鍔ㄥ垏鍥炲揩 400 鍊嶇殑璺緞
- 鐢婚潰蹇冭烦甯э細闈欐鏃剁渷娴侀噺锛屽鎴风浠嶇煡閬撴祦鏄椿鐨?- 閿佸睆鏃剁粰鍑哄彲鎿嶄綔鐨勬彁绀?
鎵嬭〃绔?- 鍐呯疆 GTS Root R4 / GlobalSign Root CA锛屼慨 SSLHandshakeException
- 杩炴帴閿欒缈昏瘧鎴愪汉璇濓紙璇佷功/鏃堕棿/瑙f瀽/瓒呮椂鍒嗗埆鎻愮ず锛?- 缁忎腑杞繛涓婂悗鐢ㄦ湇鍔″櫒鎶ョ殑鍦板潃鍒锋柊宸查厤瀵硅褰?- 鏂板灞€鍩熺綉杩炴帴椤甸潰銆佹湇鍔″櫒寤惰繜妫€娴?
鏈嶅姟鍣ㄧ
- 鏀寔 chunked 璇锋眰浣擄紙淇瘡 16 绉掍竴娆$殑杩炴帴閿欎贡涓庡ぇ闈㈢Н 502锛?- 缃戠粶璋冧紭鑴氭湰 net-tune.sh锛堝紑鏈鸿嚜鍔ㄥ簲鐢級
- 绠$悊椤碉細鎵归噺鍒犻櫎銆佺綉缁滀綋妫€銆佷笅杞藉尯
- 闅ч亾鏀?HTTP/2 + 鍙岃繛鎺?
鏂囨。
- 璁稿彲鍗忚 / 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭ワ紙浣滆€咃細灏忛害瀛愶級
2026-10-06 19:01:05 +08:00

98 lines
3.7 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.
# 配置仓库、暂存、提交(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 " $_" }