From 6155f59996ada8a1a243f5d084c910ae9cf1e88c 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)) {