main.go: support to generate multiple custom dats (#3367)

This allows to remove any unwanted lists without modifying the domains
data, and you can generate multiple custom v2ray dat files in a single
command.

As long as the source data is consistent, any list remains in the trimed
dat contains the same rules comparing to the list in full dat.

Use the new option `datprofile` to specify the config json file path.
`outputname` will be ignored when `datprofile` is set.

Co-authored-by: database64128 <[email protected]>
This commit is contained in:
MkQtSanddatabase64128 authored and GitHub committed 2026-03-18 18:32:05 +08:00
1 parent 9ee0757263
commit 1db558b165
2 files changed
+131 -14

No files matched your search

+3 -3
View File
@@ -4,9 +4,9 @@
/domain-list-community
/domain-list-community.exe
# Generated dat file.
dlc.dat
# Generated dat files.
/*.dat
# Exported plaintext lists.
/*.yml
/*.txt
/*.yml