jan/electron/utils/setup.ts
2024-02-15 08:38:05 +07:00

10 lines
244 B
TypeScript

import { app } from 'electron'
export const setupCore = async () => {
// Setup core api for main process
global.core = {
// Define appPath function for app to retrieve app path globaly
appPath: () => app.getPath('userData'),
}
}