fix: 打包 BUG

This commit is contained in:
草鞋没号
2021-02-18 17:29:45 +08:00
parent dc758b0521
commit a6dd5d1ad7
3 changed files with 5 additions and 2 deletions

View File

@@ -1,10 +1,11 @@
/**
* electron 主文件
*/
require('dotenv').config({ path: join(__dirname, '../../.env') })
import { join } from 'path'
import { app, BrowserWindow } from 'electron'
import dotenv from 'dotenv'
dotenv.config({ path: join(__dirname, '../../.env') })
let win: BrowserWindow