Function
setElectronAppPaths
(appDirOrDirs: string | string[], resourcesPath?: string)
Source from the content-addressed store, hash-verified
| 848 | * @param resourcesPath - Optional resources path (for packaged apps) |
| 849 | */ |
| 850 | export function setElectronAppPaths(appDirOrDirs: string | string[], resourcesPath?: string): void { |
| 851 | electronAppDirs = Array.isArray(appDirOrDirs) ? appDirOrDirs : [appDirOrDirs]; |
| 852 | electronResourcesPath = resourcesPath || null; |
| 853 | } |
| 854 | |
| 855 | /** |
| 856 | * Check if a path is within the Electron app bundle (any of the allowed directories) |
Tested by
no test coverage detected