diff --git a/electron/main/index.ts b/electron/main/index.ts index 2c282d2..1a126c1 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -4,8 +4,8 @@ import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' import { update } from './update' -const __filename = fileURLToPath(import.meta.url) -const __dirname = dirname(__filename) +globalThis.__filename = fileURLToPath(import.meta.url) +globalThis.__dirname = dirname(__filename) // The built directory structure //