import { app } from 'electron'; import path from 'path'; import { getAppFolder } from './helpers/utils'; const appFolder = getAppFolder(); interface IConfig { isDev: boolean; sendScriptPath: string; sendAttachmentScriptPath: string; } export const config: IConfig = { isDev: !app.isPackaged, sendScriptPath: path.join(appFolder, 'sendScript.applescript'), sendAttachmentScriptPath: path.join(appFolder, 'sendAttachmentScript.applescript'), };