Release v122 with Tachyon integration and resilient Xray downloads
OpenWrt IPK and APK / Validate source and resolve stable SDKs (push) Waiting to run

This commit is contained in:
kzolotarev95 committed 2026-11-21 22:53:52 +04:00
1 parent f4ccbf82f3
commit 70a4705e67
50 files changed
+3173 -181

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Keep the self-contained installer and agent's downloader identical."""
from pathlib import Path
import sys
root = Path(__file__).resolve().parents[1]
start = '# BEGIN SHARED ROUTER DOWNLOADER\n'
end = '# END SHARED ROUTER DOWNLOADER\n'
block = start + (root / 'scripts/router-download.sh').read_text(encoding='utf-8').rstrip() + '\n' + end
for name in ('install.sh', 'files/usr/sbin/owrt-remote'):
path = root / name
text = path.read_text(encoding='utf-8')
before, rest = text.split(start, 1)
_, after = rest.split(end, 1)
updated = before + block + after
if '--check' in sys.argv:
if updated != text:
raise SystemExit('Downloader out of date: ' + name)
else:
path.write_text(updated, encoding='utf-8', newline='\n')
print('Shared router downloader: OK')