mirror of
https://github.com/enso-org/enso.git
synced 2024-12-30 15:10:22 +03:00
143665d944
- Close #8610 # Important Notes QA notes: - The GUI2 warning screen should not show up - the arguments that GUI2 do not understand have been removed. - However, it should be tested that the warnings screen should correctly work when invalid arguments really *are* passed in: - Via URL query parameters (electron, might need to open the electron app then the browser, *or* do `location.href = ` in DevTools in Electron.) - By editing `Editor.tsx` to inject invalid args to the big configuration object we pass to the GUI entrypoint.
32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
/** @file This module defines paths within the client distribution's resources. */
|
|
|
|
import * as buildUtils from 'enso-common/src/buildUtils'
|
|
|
|
// ==========================
|
|
// === Paths to resources ===
|
|
// ==========================
|
|
|
|
/** Path to the Project Manager bundle within the electron distribution
|
|
* (relative to electron's resources directory). */
|
|
export const PROJECT_MANAGER_BUNDLE = 'enso'
|
|
|
|
/** Distribution directory for IDE. */
|
|
export function getIdeDirectory(): string {
|
|
return buildUtils.requireEnv('ENSO_BUILD_IDE')
|
|
}
|
|
|
|
/** Distribution directory for GUI. */
|
|
export function getGuiDirectory(): string {
|
|
return buildUtils.requireEnv('ENSO_BUILD_GUI')
|
|
}
|
|
|
|
/** Path to the project manager bundle root. */
|
|
export function getProjectManagerBundlePath(): string {
|
|
return buildUtils.requireEnv('ENSO_BUILD_PROJECT_MANAGER')
|
|
}
|
|
|
|
/** Path to the project manager executable relative to the PM bundle root. */
|
|
export function getProjectManagerInBundlePath(): string {
|
|
return buildUtils.requireEnv('ENSO_BUILD_PROJECT_MANAGER_IN_BUNDLE_PATH')
|
|
}
|