v1.2.98 - 分离前后端版本文件,独立管理

This commit is contained in:
甲辰生产 2026-04-19 21:17:06 +08:00
parent fb987dc5b9
commit 591db03ee1
4 changed files with 3 additions and 4 deletions

View File

@ -1 +0,0 @@
VERSION=1.2.98

View File

@ -1 +1 @@
VERSION=1.2.79
1.2.98

View File

@ -1 +1 @@
VERSION=1.2.98
1.2.98

View File

@ -6,7 +6,7 @@ import { join } from 'path'
// 从 config/VERSION 文件读取版本号
function getVersion() {
try {
const versionFile = join(__dirname, '..', 'config', 'VERSION')
const versionFile = join(__dirname, 'config', 'VERSION')
const content = readFileSync(versionFile, 'utf-8').trim()
// 移除 VERSION= 前缀
if (content.startsWith('VERSION=')) {