MCPcopy
hub / github.com/AutoMaker-Org/automaker / setElectronAppPaths

Function setElectronAppPaths

libs/platform/src/system-paths.ts:850–853  ·  view source on GitHub ↗
(appDirOrDirs: string | string[], resourcesPath?: string)

Source from the content-addressed store, hash-verified

848 * @param resourcesPath - Optional resources path (for packaged apps)
849 */
850export 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)

Callers 1

handleAppReadyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected