import * as path from 'path' ; export const DEVMODE = /node_modules[\\/]electron[\\/]/ . test ( process . execPath ) ; export const MACOS = process . platform === 'darwin' ; export const WIN = process . platform === 'win32' ; export const PROJECT_ROOT = path . resolve ( __dirname , '..' , '..' ) ; export const SOURCE_DIR = path . join ( PROJECT_ROOT , 'src' ) ; export const XI_CORE_DIR = path . join ( SOURCE_DIR , 'xi' ) ; export const XI_CORE_BIN = path . join ( XI_CORE_DIR , WIN ? 'xi-core.exe' : 'xi-core' ) ;