From bc82ae204ed7a63c4fb8788396809cde9af7dd39 Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sat, 24 Jun 2023 09:23:03 -0400 Subject: [PATCH] fix(aklive2d): fixed an issue on naming in downloader --- libs/downloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/downloader.js b/libs/downloader.js index 32a14de..0df3cef 100644 --- a/libs/downloader.js +++ b/libs/downloader.js @@ -11,8 +11,8 @@ export default class Downloader { const lastCommit = historyData[0] const lastCommitDate = new Date(lastCommit.commit.committer.date) console.log(`Last commit date: ${lastCommitDate.getTime()}`) - const basename = path.basename(filepath) const ext = path.extname(filepath) + const basename = path.basename(filepath).replace(ext, '') filepath = path.join(filepath, "..", `${basename}_${lastCommitDate.getTime()}${ext}`) if (exists(filepath)) {