Leadaxe:singbox-launcher 在 develop 增加本地规则集文件支持

Leadaxe 表示,develop 的 43ed9255 已在现有 Rule set(原 SRS)中加入本地文件来源,计划随下个版本发布。列表可混用 URL 与文件;.json 按 source、其他格式按 binary 处理。启动器保存文件副本,源文件修改可通过每小时更新或 upd 按钮同步,无需重启内核;源文件消失时保留最后副本。远程部署会上传副本,但不支持直接引用远程机器上的文件,也不支持 Windows 网络路径。

作者原文

Done in develop (43ed9255), it will be in the next release.

There is no separate "Local File" type — a local file is one more kind of source in the existing rule-set rule (the SRS type, now called Rule set):

  • The list takes URLs and files, one per line. Press Add file… or paste a path (/home/me/rules/my.json, C:\Rules\my.srs) — it is stored as a file:// line next to the URLs.
  • Both formats work, for files and for URLs: .json is emitted as format: source, anything else as format: binary. Before this a .json set did not work even by URL.
  • The launcher keeps its own copy of the file and gives the core type: local with the path to that copy. An edited source file is picked up by the hourly update loop or by the ⬇ upd button in the rule row, without restarting the core. If the source file disappears, the rule keeps working on the last copy.
  • For a remote machine the copy is uploaded on Deploy, like any other rule set.

Not supported: a path to a file that lives on the remote machine itself (the file is always taken from the computer running the launcher), and Windows network paths (\\server\share).