mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
feat: updates
This commit is contained in:
parent
7ce516877e
commit
ccebe0a67a
74 changed files with 56065 additions and 2810 deletions
|
|
@ -1,11 +1,7 @@
|
|||
import log from './log'
|
||||
import { app } from 'electron'
|
||||
import { isDev } from './env'
|
||||
import {
|
||||
createDirIfNotExist,
|
||||
portableUserDataPath,
|
||||
devUserDataPath,
|
||||
} from './utils'
|
||||
import { createDirIfNotExist, portableUserDataPath, devUserDataPath, dirname } from './utils'
|
||||
|
||||
if (isDev) {
|
||||
createDirIfNotExist(devUserDataPath)
|
||||
|
|
@ -16,4 +12,6 @@ if (process.env.PORTABLE_EXECUTABLE_DIR) {
|
|||
app.setPath('appData', portableUserDataPath)
|
||||
}
|
||||
|
||||
log.info('[preload] dirname', dirname)
|
||||
|
||||
log.info(`[preload] userData path: ${app.getPath('userData')}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue