feat:修改配置

This commit is contained in:
aisouler
2024-02-01 20:08:59 +08:00
parent 6ad84c70a2
commit 8ff1e8c417
8 changed files with 22 additions and 27 deletions

View File

@@ -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:

View File

@@ -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(() => '{}'),
);