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 { task } from './trace';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
import { unlink } from 'fs/promises';
|
||||||
|
|
||||||
import { ALL as AllStreamServices } from '../Source/stream';
|
import { ALL as AllStreamServices } from '../Source/stream';
|
||||||
import { getChnCidrPromise } from './build-chn-cidr';
|
import { getChnCidrPromise } from './build-chn-cidr';
|
||||||
import { getTelegramCIDRPromise } from './build-telegram-cidr';
|
import { getTelegramCIDRPromise } from './build-telegram-cidr';
|
||||||
@@ -108,11 +110,7 @@ export const buildSSPanelUIMAppProfile = task(import.meta.path, async (span) =>
|
|||||||
lanCidrs
|
lanCidrs
|
||||||
);
|
);
|
||||||
|
|
||||||
await compareAndWriteFile(
|
await unlink(path.resolve(import.meta.dir, '../Internal/appprofile.php'));
|
||||||
span,
|
|
||||||
output,
|
|
||||||
path.resolve(import.meta.dir, '../List/internal/appprofile.php')
|
|
||||||
);
|
|
||||||
await compareAndWriteFile(
|
await compareAndWriteFile(
|
||||||
span,
|
span,
|
||||||
output,
|
output,
|
||||||
|
|||||||
Reference in New Issue
Block a user