differentiate backups for different platform

This commit is contained in:
pompurin404 2024-08-27 10:10:20 +08:00
parent d49e9bc420
commit 16293adf28
No known key found for this signature in database

View File

@ -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,