mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Add sing-box support
This commit is contained in:
@@ -6,6 +6,7 @@ import { task } from './trace';
|
||||
|
||||
const outputSurgeDir = path.resolve(__dirname, '../List');
|
||||
const outputClashDir = path.resolve(__dirname, '../Clash');
|
||||
const outputSingboxDir = path.resolve(__dirname, '../sing-box');
|
||||
|
||||
export const buildCloudMounterRules = task(require.main === module, __filename)(async (span) => {
|
||||
// AND,((SRC-IP,192.168.1.110), (DOMAIN, example.com))
|
||||
@@ -24,6 +25,7 @@ export const buildCloudMounterRules = task(require.main === module, __filename)(
|
||||
results,
|
||||
'ruleset',
|
||||
path.resolve(outputSurgeDir, 'non_ip', 'cloudmounter.conf'),
|
||||
path.resolve(outputClashDir, 'non_ip', 'cloudmounter.txt')
|
||||
path.resolve(outputClashDir, 'non_ip', 'cloudmounter.txt'),
|
||||
path.resolve(outputSingboxDir, 'non_ip', 'cloudmounter.json')
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user