feat: version

This commit is contained in:
AIsouler
2024-03-28 21:13:43 +08:00
parent 17797087ed
commit ccf600227c
4 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +0,0 @@
{
"id": 666,
"version": 46
}

4
dist/AIsouler_gkd.version.json5 vendored Normal file
View File

@@ -0,0 +1,4 @@
{
id: 666,
version: 46,
}

View File

@@ -9,7 +9,7 @@ const subsConfig: RawSubscription = {
name: 'AIsouler的GKD订阅',
author: 'AIsouler',
supportUri: 'https://github.com/AIsouler/GKD_subscription',
checkUpdateUrl: './AIsouler_gkd.version.json',
checkUpdateUrl: './AIsouler_gkd.version.json5',
globalGroups,
categories,
apps,

View File

@@ -75,7 +75,7 @@ const pkgKeys = Object.keys(pkg);
// 定义保存规则配置的文件路径和版本文件路径
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 变量
const oldConfig: RawSubscription = JSON5.parse(