diff --git a/changelog.md b/changelog.md index c916558..35480dd 100644 --- a/changelog.md +++ b/changelog.md @@ -5,3 +5,4 @@ ### Bug Fixes - 修复url-test代理组节点无法取消固定的问题 +- 修复WebDAV备份时Sub-Store目录备份失败的问题 diff --git a/src/main/resolve/backup.ts b/src/main/resolve/backup.ts index 92c9605..f0119c4 100644 --- a/src/main/resolve/backup.ts +++ b/src/main/resolve/backup.ts @@ -9,6 +9,7 @@ import { overrideDir, profileConfigPath, profilesDir, + subStoreDir, themesDir } from '../utils/dirs' @@ -24,7 +25,7 @@ export async function webdavBackup(): Promise { zip.addLocalFolder(themesDir(), 'themes') zip.addLocalFolder(profilesDir(), 'profiles') zip.addLocalFolder(overrideDir(), 'override') - zip.addLocalFolder(overrideDir(), 'substore') + zip.addLocalFolder(subStoreDir(), 'substore') const date = new Date() const zipFileName = `${process.platform}_${dayjs(date).format('YYYY-MM-DD_HH-mm-ss')}.zip`