mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
feat:修改配置
This commit is contained in:
@@ -6,9 +6,9 @@ import type { RawSubscription } from './types';
|
||||
const subsConfig: RawSubscription = {
|
||||
id: 0,
|
||||
version: 0,
|
||||
name: '默认订阅',
|
||||
author: 'lisonge',
|
||||
supportUri: 'https://github.com/gkd-kit/subscription',
|
||||
name: 'AIsouler的GKD订阅',
|
||||
author: 'AIsouler',
|
||||
supportUri: 'https://github.com/AIsouler/subscription',
|
||||
updateUrl:
|
||||
'https://registry.npmmirror.com/@gkd-kit/subscription/latest/files',
|
||||
checkUpdateUrl:
|
||||
|
||||
@@ -58,8 +58,8 @@ const pkg: typeof PkgT = JSON.parse(
|
||||
);
|
||||
const pkgKeys = Object.keys(pkg);
|
||||
|
||||
const gkdFp = process.cwd() + '/dist/gkd.json5';
|
||||
const versionFp = process.cwd() + '/dist/gkd.version.json';
|
||||
const gkdFp = process.cwd() + '/dist/AIsouler_gkd.json5';
|
||||
const versionFp = process.cwd() + '/dist/AIsouler_gkd.version.json';
|
||||
const oldConfig: RawSubscription = JSON5.parse(
|
||||
await fs.readFile(gkdFp, 'utf-8').catch(() => '{}'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user