Skip to content

Conversation

@romeoahmed
Copy link
Contributor

Improved the sing-box manifest with proper persistence and robust update logic.

  • Persistence: Added config.json, cache.db, and config.d/ config/ folder to the persist field.

  • Initialization: Added a pre_install script to:

    • Ensure $persist_dir exists (fixes directory missing errors in PowerShell).
    • Initialize config.json with UTF-8 (No BOM) and LF to prevent JSON parsing errors on the first run.
    • Touch an empty cache.db file.
  • 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

- Support persistence for config.json, cache.db, and config directories.
- Improve checkver regex and autoupdate URL for reliability.
@github-actions
Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

sing-box

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate

Check the full log for details.

@z-Fng z-Fng changed the title sing-box: add persistence and pre-install initialization sing-box: Persist user data Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants