mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
chore: 用esbuild代替vite来打包main
This commit is contained in:
parent
b4590c3c34
commit
c4219afd3d
152 changed files with 669 additions and 747 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import logger from './logger'
|
||||
import path from 'path'
|
||||
import { app } from 'electron'
|
||||
import fs from 'fs'
|
||||
|
||||
const isDev = !app.isPackaged
|
||||
|
||||
if (isDev) {
|
||||
const devUserDataPath = path.resolve(process.cwd(), './tmp/userData')
|
||||
try {
|
||||
fs.statSync(devUserDataPath)
|
||||
} catch (e) {
|
||||
fs.mkdirSync(devUserDataPath)
|
||||
}
|
||||
app.setPath('appData', devUserDataPath)
|
||||
}
|
||||
logger.info(`[index] userData path: ${app.getPath('userData')}`)
|
||||
Loading…
Add table
Add a link
Reference in a new issue