mirror of
https://gitee.com/xmz7891/ykxmz.git
synced 2026-10-19 10:40:44 +00:00
ykxmz 1.5.0锛氭墜琛ㄧ TLS 璇佷功鍏煎 + 涓夌鍒嗗紑鎵撳寘 + 涓嬭浇鍖?
鎵嬭〃绔?- 鍐呯疆 GTS Root R4 / GlobalSign Root CA
淇?SSLHandshakeException: Chain validation failed
锛堝粔浠锋墜琛ㄧ郴缁熸牴璇佷功搴撳父缂?GTS Root R4锛?- 杩炴帴閿欒缈昏瘧鎴愪汉璇濓細璇佷功 / 鏃堕棿 / 瑙f瀽 / 瓒呮椂鍒嗗埆缁欐彁绀?- 缁忎腑杞繛涓婂悗鐢ㄦ湇鍔″櫒鎶ョ殑鍦板潃鍒锋柊宸查厤瀵硅褰曪紙鍘熸潵涓€鐩存樉绀烘棫 IP锛?- 鐗堟湰鍙?1.3.0 -> 1.5.0锛圓ndroidManifest 涔嬪墠婕忔敼浜嗭級
鏈嶅姟鍣ㄧ
- 鏀寔 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锛? 涓変釜鍖?鏂囦欢閮藉甫涓婅鍙崗璁?/ 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭?
鏂囨。
- 璁稿彲鍗忚 / 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭ワ紙浣滆€咃細灏忛害瀛愶級
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
r"""两件事:
|
||||
1. 给 verify_all.ps1 补回 UTF-8 BOM
|
||||
(edit 工具写出来不带 BOM,PowerShell 里中文会乱码)
|
||||
2. 把三个成品上传到设备的下载目录
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(r"C:\Users\shu\Desktop\deepseekagent\LanRemote")
|
||||
sys.path.insert(0, str(ROOT / "_build"))
|
||||
|
||||
from devssh import run, upload # noqa: E402
|
||||
|
||||
VERIFY = ROOT / "_tests" / "verify_all.ps1"
|
||||
|
||||
UPLOADS = [
|
||||
("dist/ykxmz-agent-1.5.0.zip",
|
||||
"/root/lanremote-relay/downloads/ykxmz-agent-1.5.0.zip"),
|
||||
("dist/ykxmz-server-1.5.0.zip",
|
||||
"/root/lanremote-relay/downloads/ykxmz-server-1.5.0.zip"),
|
||||
("dist/ykxmz-watch-1.5.0.apk",
|
||||
"/root/lanremote-relay/downloads/ykxmz-watch-1.5.0.apk"),
|
||||
("dist/ykxmz-watch-1.5.0-说明.txt",
|
||||
"/root/lanremote-relay/downloads/ykxmz-watch-1.5.0-说明.txt"),
|
||||
]
|
||||
|
||||
|
||||
def main() -> int:
|
||||
# ---- 1. 补 BOM ----
|
||||
raw = VERIFY.read_bytes()
|
||||
if raw.startswith(b"\xef\xbb\xbf"):
|
||||
print(" verify_all.ps1: BOM 正常")
|
||||
else:
|
||||
VERIFY.write_bytes(b"\xef\xbb\xbf" + raw)
|
||||
print(" verify_all.ps1: 补回了 UTF-8 BOM")
|
||||
|
||||
# ---- 2. 建目录 ----
|
||||
run("mkdir -p /root/lanremote-relay/downloads", timeout=30)
|
||||
run("rm -f /root/lanremote-relay/downloads/ykxmz-1.5.0.zip", timeout=30)
|
||||
|
||||
# ---- 3. 上传 ----
|
||||
print()
|
||||
print(" 上传成品:")
|
||||
for local, remote in UPLOADS:
|
||||
src = ROOT / local
|
||||
if not src.is_file():
|
||||
print(f" [跳过] {local} 不存在")
|
||||
continue
|
||||
try:
|
||||
upload(str(src), remote, 0o644)
|
||||
size = src.stat().st_size
|
||||
print(f" ✓ {src.name} ({size / 1024 / 1024:.2f} MB)")
|
||||
except Exception as exc: # noqa: BLE001
|
||||
print(f" ✗ {src.name}: {exc}")
|
||||
|
||||
# ---- 4. 确认 ----
|
||||
print()
|
||||
code, out, _err = run(
|
||||
"ls -la /root/lanremote-relay/downloads/ | tail -8", timeout=30)
|
||||
print(out)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user