v1.2.98 - 分离前后端版本文件,独立管理
This commit is contained in:
parent
fb987dc5b9
commit
591db03ee1
|
|
@ -1 +1 @@
|
||||||
VERSION=1.2.79
|
1.2.98
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
VERSION=1.2.98
|
1.2.98
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { join } from 'path'
|
||||||
// 从 config/VERSION 文件读取版本号
|
// 从 config/VERSION 文件读取版本号
|
||||||
function getVersion() {
|
function getVersion() {
|
||||||
try {
|
try {
|
||||||
const versionFile = join(__dirname, '..', 'config', 'VERSION')
|
const versionFile = join(__dirname, 'config', 'VERSION')
|
||||||
const content = readFileSync(versionFile, 'utf-8').trim()
|
const content = readFileSync(versionFile, 'utf-8').trim()
|
||||||
// 移除 VERSION= 前缀
|
// 移除 VERSION= 前缀
|
||||||
if (content.startsWith('VERSION=')) {
|
if (content.startsWith('VERSION=')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue