Chore: refactor build phase

This commit is contained in:
SukkaW
2022-11-07 16:17:56 +08:00
parent e3c2d289ec
commit c403ae2c1f
18 changed files with 68 additions and 75987 deletions

View File

@@ -33,7 +33,7 @@ const threads = isCI ? cpuCount : cpuCount / 2;
let previousSize = domainSets.size;
console.log(`Import ${previousSize} rules from hosts files!`);
await fsPromises.readFile(pathResolve(__dirname, '../List/domainset/reject_sukka.conf'), { encoding: 'utf-8' }).then(data => {
await fsPromises.readFile(pathResolve(__dirname, '../Source/domainset/reject_sukka.conf'), { encoding: 'utf-8' }).then(data => {
data.split('\n').forEach(line => {
const trimmed = line.trim();
if (