enso/app/ide-desktop/lib/client/paths.ts
Michał Wawrzyniec Urbańczyk ee981d2052
Reworked ide watch and ide start commands (#5634)
This PR changes build script's `ide watch` and `ide start` commands, so they don't use `electron-builder` to package. Instead, they invoke `electron` directly, significantly reducing time overhead.

`ide watch` will now start Electron process, while continuously rebuilding gui and the client in the background. Changes can be puilled by reloading within the electron, or closing the electron and letting it start once again. To stop, the script should be interrupted with `Ctrl+C`.
2023-03-02 23:00:47 +01:00

37 lines
1.2 KiB
TypeScript

/**
* This module defines paths within the client distribution's resources.
*
* This is knowledge that is common to code building the client package and the packaged code itself.
*
*/
import { require_env } 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 require_env('ENSO_BUILD_IDE')
}
/** Distribution directory for GUI. */
export function getGuiDirectory(): string {
return require_env('ENSO_BUILD_GUI')
}
/** Path to the project manager bundle root. */
export function getProjectManagerBundle(): string {
return require_env('ENSO_BUILD_PROJECT_MANAGER')
}
/** Path to the project manager executable relative to the PM bundle root. */
export function getProjectManagerInBundlePath(): string {
return require_env('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 require_env('ENSO_BUILD_IDE_BUNDLED_ENGINE_VERSION')
}