2023-03-15 06:42:14 +03:00
|
|
|
/** @file This module defines paths within the client distribution's resources. */
|
2022-05-23 05:16:04 +03:00
|
|
|
|
2024-03-08 06:14:26 +03:00
|
|
|
import * as buildUtils from 'enso-common/src/buildUtils'
|
2023-03-03 01:00:47 +03:00
|
|
|
|
2023-05-19 22:55:29 +03:00
|
|
|
// ==========================
|
|
|
|
// === Paths to resources ===
|
|
|
|
// ==========================
|
|
|
|
|
|
|
|
/** Path to the Project Manager bundle within the electron distribution
|
|
|
|
* (relative to electron's resources directory). */
|
2023-03-15 06:42:14 +03:00
|
|
|
export const PROJECT_MANAGER_BUNDLE = 'enso'
|
2023-03-03 01:00:47 +03:00
|
|
|
|
|
|
|
/** Distribution directory for IDE. */
|
|
|
|
export function getIdeDirectory(): string {
|
2024-07-26 09:34:51 +03:00
|
|
|
return buildUtils.requireEnv('ENSO_BUILD_IDE')
|
2023-03-03 01:00:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Path to the project manager bundle root. */
|
2023-03-15 06:42:14 +03:00
|
|
|
export function getProjectManagerBundlePath(): string {
|
2024-07-26 09:34:51 +03:00
|
|
|
return buildUtils.requireEnv('ENSO_BUILD_PROJECT_MANAGER')
|
2023-03-03 01:00:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Path to the project manager executable relative to the PM bundle root. */
|
|
|
|
export function getProjectManagerInBundlePath(): string {
|
2024-07-26 09:34:51 +03:00
|
|
|
return buildUtils.requireEnv('ENSO_BUILD_PROJECT_MANAGER_IN_BUNDLE_PATH')
|
2023-03-03 01:00:47 +03:00
|
|
|
}
|