mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: appprofile no longer use old path
This commit is contained in:
@@ -5,6 +5,8 @@ import { readFileIntoProcessedArray } from './lib/fetch-text-by-line';
|
||||
import { task } from './trace';
|
||||
import path from 'path';
|
||||
|
||||
import { unlink } from 'fs/promises';
|
||||
|
||||
import { ALL as AllStreamServices } from '../Source/stream';
|
||||
import { getChnCidrPromise } from './build-chn-cidr';
|
||||
import { getTelegramCIDRPromise } from './build-telegram-cidr';
|
||||
@@ -108,11 +110,7 @@ export const buildSSPanelUIMAppProfile = task(import.meta.path, async (span) =>
|
||||
lanCidrs
|
||||
);
|
||||
|
||||
await compareAndWriteFile(
|
||||
span,
|
||||
output,
|
||||
path.resolve(import.meta.dir, '../List/internal/appprofile.php')
|
||||
);
|
||||
await unlink(path.resolve(import.meta.dir, '../Internal/appprofile.php'));
|
||||
await compareAndWriteFile(
|
||||
span,
|
||||
output,
|
||||
|
||||
Reference in New Issue
Block a user