chore: 将部分通用变量移动到utils.ts

This commit is contained in:
qier222 2022-05-13 01:47:55 +08:00
parent 78ba547138
commit 48869266e4
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
10 changed files with 24 additions and 33 deletions

View file

@ -1,9 +1,7 @@
import log from './log'
import path from 'path'
import { app } from 'electron'
import { createDirIfNotExist } from './utils'
const isDev = process.env.NODE_ENV === 'development'
import { createDirIfNotExist, isDev } from './utils'
if (isDev) {
const devUserDataPath = path.resolve(process.cwd(), '../../tmp/userData')