mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
differentiate backups for different platform
This commit is contained in:
parent
d49e9bc420
commit
16293adf28
|
@ -25,7 +25,7 @@ export async function webdavBackup(): Promise<boolean> {
|
|||
zip.addLocalFolder(profilesDir(), 'profiles')
|
||||
zip.addLocalFolder(overrideDir(), 'override')
|
||||
const date = new Date()
|
||||
const zipFileName = `Backup_${dayjs(date).format('YYYY-MM-DD_HH-mm-ss')}.zip`
|
||||
const zipFileName = `${process.platform}_${dayjs(date).format('YYYY-MM-DD_HH-mm-ss')}.zip`
|
||||
|
||||
const client = createClient(webdavUrl, {
|
||||
username: webdavUsername,
|
||||
|
|
Loading…
Reference in New Issue
Block a user