fix substore backup error

This commit is contained in:
pompurin404 2024-09-25 18:47:41 +08:00
parent 21418954c1
commit 78106b0ad3
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -5,3 +5,4 @@
### Bug Fixes
- 修复url-test代理组节点无法取消固定的问题
- 修复WebDAV备份时Sub-Store目录备份失败的问题

View File

@ -9,6 +9,7 @@ import {
overrideDir,
profileConfigPath,
profilesDir,
subStoreDir,
themesDir
} from '../utils/dirs'
@ -24,7 +25,7 @@ export async function webdavBackup(): Promise<boolean> {
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`