From 1d40349c25ca69f5bc9100d536cd47f024041846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E4=BA=91?= Date: Mon, 28 Apr 2025 21:33:15 +0800 Subject: [PATCH] Update build.js --- build/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.js b/build/build.js index 89de8c49..ccda31e4 100644 --- a/build/build.js +++ b/build/build.js @@ -72,10 +72,10 @@ function extractInfoFromPathingFile(filePath, parentFolders) { const contentObj = JSON.parse(content); - // 提取版本字段,若不存在则使用 SHA1 前7位 + // 提取版本字段,若不存在则使用创建时间 const version = contentObj.info && contentObj.info.version ? contentObj.info.version - : calculateSHA1(filePath).substring(0, 7); + : : `${formatTime(stats.birthtime)}_${formatTime(stats.mtime)}`; let tags = parentFolders.slice(2) .filter(tag => !tag.includes('@'))