Files
ykxmz/_build/upload_downloads.py
T
xmz7891 7f267dd900 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锛?  涓変釜鍖?鏂囦欢閮藉甫涓婅鍙崗璁?/ 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭?
鏂囨。
- 璁稿彲鍗忚 / 瀹夎鍓嶅繀璇?/ 瀹夎鍚庨』鐭ワ紙浣滆€咃細灏忛害瀛愶級
2026-10-06 19:08:02 +08:00

69 lines
2.0 KiB
Python
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.
# -*- 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())