()
| 16 | const isElectronAndDev: boolean = isElectron && electronConfig.isDev; |
| 17 | |
| 18 | export function getTargetDirectoryPath() { |
| 19 | if (isElectron) { |
| 20 | if (!isElectronAndDev) { |
| 21 | return electronConfig.userDataPath; |
| 22 | } |
| 23 | return path.join(__dirname, "../../"); |
| 24 | } |
| 25 | return process.cwd(); |
| 26 | } |