Skip to content

Commit 1610dd0

Browse files
committed
Docs: fix README Clash usage
1 parent 6e83927 commit 1610dd0

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

Build/download-previous-build.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ const downloadPreviousBuild = task(__filename, async () => {
2121

2222
let allFileExists = true;
2323

24-
if (isCI) {
25-
allFileExists = false;
26-
} else {
27-
for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
28-
if (
29-
(
24+
for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
25+
if (
26+
(
3027
// line.startsWith('List/')
31-
line.startsWith('Modules/')
32-
) && !line.endsWith('/')
33-
) {
34-
allFileExists = fs.existsSync(join(__dirname, '..', line));
35-
filesList.push(line);
28+
line.startsWith('Modules/')
29+
) && !line.endsWith('/')
30+
) {
31+
filesList.push(line);
3632

33+
if (!isCI) {
34+
allFileExists = fs.existsSync(join(__dirname, '..', line));
3735
if (!allFileExists) {
3836
console.log(`File not exists: ${line}`);
3937
break;
@@ -42,6 +40,10 @@ const downloadPreviousBuild = task(__filename, async () => {
4240
}
4341
}
4442

43+
if (isCI) {
44+
allFileExists = false;
45+
}
46+
4547
if (allFileExists) {
4648
console.log('All files exists, skip download.');
4749
return;

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ rules:
7171
# WARNING! Using reject_domainset can cause Clash out of memory due to the insufficient Clash implementation.
7272
- RULE-SET,reject_domainset,REJECT
7373
- RULE-SET,reject_phishing_domainset,REJECT
74-
- RULE-SET,reject_ip,REJECT-DROP
74+
- RULE-SET,reject_ip,REJECT
7575
```
7676
7777
#### 搜狗输入法
@@ -343,7 +343,7 @@ rule-providers:
343343
behavior: classical
344344
format: text
345345
interval: 43200
346-
url: domestic_ip
346+
url: https://ruleset.skk.moe/Clash/ip/domestic.txt
347347
path: ./sukkaw_ruleset/domestic_ip.txt
348348
349349
rules:

0 commit comments

Comments
 (0)