Docs: fix README Clash usage

This commit is contained in:
SukkaW 2023-09-15 11:58:16 +08:00
parent 6e839279cf
commit 1610dd0939
2 changed files with 15 additions and 13 deletions

View File

@ -21,19 +21,17 @@ const downloadPreviousBuild = task(__filename, async () => {
let allFileExists = true; let allFileExists = true;
if (isCI) { for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
allFileExists = false; if (
} else { (
for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
if (
(
// line.startsWith('List/') // line.startsWith('List/')
line.startsWith('Modules/') line.startsWith('Modules/')
) && !line.endsWith('/') ) && !line.endsWith('/')
) { ) {
allFileExists = fs.existsSync(join(__dirname, '..', line)); filesList.push(line);
filesList.push(line);
if (!isCI) {
allFileExists = fs.existsSync(join(__dirname, '..', line));
if (!allFileExists) { if (!allFileExists) {
console.log(`File not exists: ${line}`); console.log(`File not exists: ${line}`);
break; break;
@ -42,6 +40,10 @@ const downloadPreviousBuild = task(__filename, async () => {
} }
} }
if (isCI) {
allFileExists = false;
}
if (allFileExists) { if (allFileExists) {
console.log('All files exists, skip download.'); console.log('All files exists, skip download.');
return; return;

View File

@ -71,7 +71,7 @@ rules:
# WARNING! Using reject_domainset can cause Clash out of memory due to the insufficient Clash implementation. # WARNING! Using reject_domainset can cause Clash out of memory due to the insufficient Clash implementation.
- RULE-SET,reject_domainset,REJECT - RULE-SET,reject_domainset,REJECT
- RULE-SET,reject_phishing_domainset,REJECT - RULE-SET,reject_phishing_domainset,REJECT
- RULE-SET,reject_ip,REJECT-DROP - RULE-SET,reject_ip,REJECT
``` ```
#### 搜狗输入法 #### 搜狗输入法
@ -343,7 +343,7 @@ rule-providers:
behavior: classical behavior: classical
format: text format: text
interval: 43200 interval: 43200
url: domestic_ip url: https://ruleset.skk.moe/Clash/ip/domestic.txt
path: ./sukkaw_ruleset/domestic_ip.txt path: ./sukkaw_ruleset/domestic_ip.txt
rules: rules: