mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 19:56:10 +08:00
fix substore backup error
This commit is contained in:
parent
0b561a39b7
commit
f319f24610
|
@ -5,3 +5,4 @@
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
- 修复url-test代理组节点无法取消固定的问题
|
- 修复url-test代理组节点无法取消固定的问题
|
||||||
|
- 修复WebDAV备份时Sub-Store目录备份失败的问题
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
overrideDir,
|
overrideDir,
|
||||||
profileConfigPath,
|
profileConfigPath,
|
||||||
profilesDir,
|
profilesDir,
|
||||||
|
subStoreDir,
|
||||||
themesDir
|
themesDir
|
||||||
} from '../utils/dirs'
|
} from '../utils/dirs'
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ export async function webdavBackup(): Promise<boolean> {
|
||||||
zip.addLocalFolder(themesDir(), 'themes')
|
zip.addLocalFolder(themesDir(), 'themes')
|
||||||
zip.addLocalFolder(profilesDir(), 'profiles')
|
zip.addLocalFolder(profilesDir(), 'profiles')
|
||||||
zip.addLocalFolder(overrideDir(), 'override')
|
zip.addLocalFolder(overrideDir(), 'override')
|
||||||
zip.addLocalFolder(overrideDir(), 'substore')
|
zip.addLocalFolder(subStoreDir(), 'substore')
|
||||||
const date = new Date()
|
const date = new Date()
|
||||||
const zipFileName = `${process.platform}_${dayjs(date).format('YYYY-MM-DD_HH-mm-ss')}.zip`
|
const zipFileName = `${process.platform}_${dayjs(date).format('YYYY-MM-DD_HH-mm-ss')}.zip`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user