()
| 39 | } |
| 40 | |
| 41 | export function getTargetDirectoryPath() { |
| 42 | if (isElectron) { |
| 43 | if (isElectronAndDev) { |
| 44 | if (isRunningInErbDll()) { |
| 45 | return path.join(__dirname, "../../"); |
| 46 | } |
| 47 | return __dirname; |
| 48 | } |
| 49 | // In Production |
| 50 | return electronConfig.userDataPath; |
| 51 | } |
| 52 | return process.cwd(); |
| 53 | } |
| 54 | |
| 55 | function isRunningInErbDll() { |
| 56 | const currentDir = __dirname; |
no test coverage detected