mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +08:00
666
This commit is contained in:
parent
eb75884b57
commit
44e4936baf
@ -1,5 +1,4 @@
|
|||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
|
||||||
|
|
||||||
import { isMac, isWin } from '@main/constant'
|
import { isMac, isWin } from '@main/constant'
|
||||||
import { getBinaryPath, isBinaryExists, runInstallScript } from '@main/utils/process'
|
import { getBinaryPath, isBinaryExists, runInstallScript } from '@main/utils/process'
|
||||||
@ -146,7 +145,7 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
await fileManager.clearTemp()
|
await fileManager.clearTemp()
|
||||||
await fs.writeFileSync(log.transports.file.getFile().path, '')
|
fs.writeFileSync(log.transports.file.getFile().path, '')
|
||||||
return { success: true }
|
return { success: true }
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
log.error('Failed to clear cache:', error)
|
log.error('Failed to clear cache:', error)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user