mirror of
https://github.com/enso-org/enso.git
synced 2024-12-19 01:21:43 +03:00
5c4660b5aa
implement [issue#5694](https://github.com/enso-org/enso/issues/5694)
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
/** @file This module defines paths within the client distribution's resources. */
|
|
|
|
import * as utils from '../../utils.js'
|
|
|
|
/** Path to the Project Manager bundle within the electron distribution (relative to the electron's resources directory). */
|
|
export const PROJECT_MANAGER_BUNDLE = 'enso'
|
|
|
|
/** Distribution directory for IDE. */
|
|
export function getIdeDirectory(): string {
|
|
return utils.requireEnv('ENSO_BUILD_IDE')
|
|
}
|
|
|
|
/** Distribution directory for GUI. */
|
|
export function getGuiDirectory(): string {
|
|
return utils.requireEnv('ENSO_BUILD_GUI')
|
|
}
|
|
|
|
/** Path to the project manager bundle root. */
|
|
export function getProjectManagerBundlePath(): string {
|
|
return utils.requireEnv('ENSO_BUILD_PROJECT_MANAGER')
|
|
}
|
|
|
|
/** Path to the project manager executable relative to the PM bundle root. */
|
|
export function getProjectManagerInBundlePath(): string {
|
|
return utils.requireEnv('ENSO_BUILD_PROJECT_MANAGER_IN_BUNDLE_PATH')
|
|
}
|
|
|
|
/** Version of the Engine (backend) that is bundled along with this client build. */
|
|
export function getBundledEngineVersion(): string {
|
|
return utils.requireEnv('ENSO_BUILD_IDE_BUNDLED_ENGINE_VERSION')
|
|
}
|