mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-18 15:55:29 +08:00
feat: version
This commit is contained in:
4
dist/AIsouler_gkd.version.json
vendored
4
dist/AIsouler_gkd.version.json
vendored
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"id": 666,
|
|
||||||
"version": 46
|
|
||||||
}
|
|
||||||
4
dist/AIsouler_gkd.version.json5
vendored
Normal file
4
dist/AIsouler_gkd.version.json5
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
id: 666,
|
||||||
|
version: 46,
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ const subsConfig: RawSubscription = {
|
|||||||
name: 'AIsouler的GKD订阅',
|
name: 'AIsouler的GKD订阅',
|
||||||
author: 'AIsouler',
|
author: 'AIsouler',
|
||||||
supportUri: 'https://github.com/AIsouler/GKD_subscription',
|
supportUri: 'https://github.com/AIsouler/GKD_subscription',
|
||||||
checkUpdateUrl: './AIsouler_gkd.version.json',
|
checkUpdateUrl: './AIsouler_gkd.version.json5',
|
||||||
globalGroups,
|
globalGroups,
|
||||||
categories,
|
categories,
|
||||||
apps,
|
apps,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const pkgKeys = Object.keys(pkg);
|
|||||||
|
|
||||||
// 定义保存规则配置的文件路径和版本文件路径
|
// 定义保存规则配置的文件路径和版本文件路径
|
||||||
const gkdFp = process.cwd() + '/dist/AIsouler_gkd.json5';
|
const gkdFp = process.cwd() + '/dist/AIsouler_gkd.json5';
|
||||||
const versionFp = process.cwd() + '/dist/AIsouler_gkd.version.json';
|
const versionFp = process.cwd() + '/dist/AIsouler_gkd.version.json5';
|
||||||
|
|
||||||
// 解析已保存的规则配置,并将结果赋值给 oldConfig 变量
|
// 解析已保存的规则配置,并将结果赋值给 oldConfig 变量
|
||||||
const oldConfig: RawSubscription = JSON5.parse(
|
const oldConfig: RawSubscription = JSON5.parse(
|
||||||
|
|||||||
Reference in New Issue
Block a user