chore: remove globalThis.__dirname

This commit is contained in:
Leo Wang(草鞋没号) 2024-04-21 09:39:09 +08:00
parent 7d5708d600
commit f06b279554

View File

@ -1,10 +1,11 @@
import { app, BrowserWindow, shell, ipcMain } from 'electron'
import { createRequire } from 'node:module'
import { fileURLToPath } from 'node:url'
import path from 'node:path'
import os from 'node:os'
globalThis.__filename = fileURLToPath(import.meta.url)
globalThis.__dirname = path.dirname(__filename)
const require = createRequire(import.meta.url)
const __dirname = path.dirname(fileURLToPath(import.meta.url))
// The built directory structure
//