Chore: update ruleset marker
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.6) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW
2025-05-13 20:57:19 +08:00
parent 3aac2a8893
commit 9f821b84ca
7 changed files with 20 additions and 11 deletions

View File

@@ -7,6 +7,7 @@ import picocolors from 'picocolors';
import { normalizeDomain } from '../normalize-domain';
import { OUTPUT_MODULES_DIR, OUTPUT_SURGE_DIR } from '../../constants/dir';
import { withBannerArray, withIdentityContent } from '../misc';
import { MARKER_DOMAIN } from '../../constants/description';
export class SurgeDomainSet extends BaseWriteStrategy {
public readonly name = 'surge domainset';
@@ -15,7 +16,7 @@ export class SurgeDomainSet extends BaseWriteStrategy {
readonly fileExtension = 'conf';
type = 'domainset';
protected result: string[] = ['this_ruleset_is_made_by_sukkaw.ruleset.skk.moe'];
protected result: string[] = [MARKER_DOMAIN];
constructor(outputDir = OUTPUT_SURGE_DIR) {
super(outputDir);
@@ -53,7 +54,7 @@ export class SurgeRuleSet extends BaseWriteStrategy {
readonly fileExtension = 'conf';
protected result: string[] = ['DOMAIN,this_ruleset_is_made_by_sukkaw.ruleset.skk.moe'];
protected result: string[] = [`DOMAIN,${MARKER_DOMAIN}`];
constructor(
/** Surge RULE-SET can be both ip or non_ip, so this needs to be specified */