sing-box: Persist user data#7572
Conversation
- Support persistence for config.json, cache.db, and config directories. - Improve checkver regex and autoupdate URL for reliability.
|
All changes look good. Wait for review from human collaborators. sing-box
|
|
It looks like it doesn't work. (: I'm not a Sing-box user.
PS> sing-box check
FATAL[0000] read config at config.json: open config.json: The system cannot find the file specified.
PS> sing-box run
FATAL[0000] read config at config.json: open config.json: The system cannot find the file specified.
PS> sing-box run -C D:\Scoop\persist\sing-box\config.d
FATAL[0000] unmarshal merged config: EOFWhat is the reason behind having both a |
These are just three common configuration methods for sing-box, and all three are retained here for compatibility. The error occurs because there are no configuration files in |
|
/verify |
|
All changes look good. Wait for review from human collaborators. sing-box
|
Improved the sing-box manifest with proper persistence and robust update logic.
Persistence: Added
config.json,cache.db, andconfig.d/config/folder to the persist field.Initialization: Added a
pre_installscript to:$persist_direxists (fixes directory missing errors in PowerShell).config.jsonwith UTF-8 (No BOM) and LF to prevent JSON parsing errors on the first run.cache.dbfile.Update Logic: Optimized the checkver regex with a stable GitHub tag anchor.
Notes: Added guidance for TUN mode administrator requirements and multi-config directory usage.
Use conventional PR title:
<manifest-name[@version]|chore>: <general summary of the pull request>I have read the Contributing Guide