mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 17:41:32 +03:00
d2f6b1026a
- Close https://github.com/enso-org/cloud-v2/issues/866 - Remove *all* references to client keys and API base URLs from the codebase. - The app can still be built by external contributors. *However*, the cloud backend (among some other things) will be completely disabled, as the required keys and base URLs will be missing. - Add entry to `.gitignore` to allow `*.env` files in `app/ide-desktop/lib/dashboard/` # Important Notes - Tested (no `.env`; `.env` with prod backend; `.pbuchu.env`) on: - `npm run dev` in `app/ide-desktop/lib/dashboard/` - `./run ide build` - `./run ide2 build` - `./run gui watch`
37 lines
1.2 KiB
TypeScript
37 lines
1.2 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')
|
|
}
|
|
|
|
/** Version of the Engine (backend) that is bundled along with this client build. */
|
|
export function getBundledEngineVersion(): string {
|
|
return buildUtils.requireEnv('ENSO_BUILD_IDE_BUNDLED_ENGINE_VERSION')
|
|
}
|