import * as Path from 'path' ; export function getResourceDirectory ( ) { return __DEV__ ? Path . join ( process . cwd ( ) , 'dist' ) : Path . join ( process . resourcesPath , 'app.asar.unpacked' , 'dist' ) ; } param loc export function unpacked ( loc ) { const s = Path . sep ; return loc . replace ( /[\\\/]?\bapp\.asar\b[\\\/]?/ , `${ s }app.asar.unpacked${ s }` ) ; } param loc export function loc ( loc ) { return loc . split ( '/' ) . join ( Path . sep ) ; } param loc export function posix ( loc ) { return loc . split ( Path . sep ) . join ( '/' ) ; }