From 78106b0ad334a82b30116d9c1d1c83df0ab3f250 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 25 Sep 2024 18:47:41 +0800 Subject: [PATCH] fix substore backup error --- changelog.md | 1 + src/main/resolve/backup.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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`