The Desktop version of Hylo built with Electron.
- Node.js ^20
- Yarn ^4.9.2
-
Install dependencies from the root of the monorepo:
yarn install
-
Build the shared packages and copy them into node_modules
yarn copy-shared-packages
- Start the desktop app in development mode:
yarn desktop
The desktop app uses shared packages from the monorepo. The build process automatically:
- Builds shared packages using
yarn build-packagesfrom the root - Copies packages to
node_modules/@hylo/for Electron builds - Fixes workspace references in copied packages to use file references
This ensures:
- New developers can run
yarn installwithout issues (uses workspace references) - Electron builds work correctly (uses copied packages in node_modules)
- Development and builds work seamlessly
- Development:
yarn desktop- Starts the app in development mode - Package:
yarn desktop:package- Creates a packaged app - Make:
yarn desktop:build- Creates distributable packages
The desktop app uses these shared packages:
@hylo/navigation- Navigation utilities@hylo/presenters- Notification presenters (depends on navigation)
These are automatically copied from the monorepo packages before each build.
If you encounter issues with shared packages:
-
Clean and rebuild:
yarn reset yarn desktop
-
Manually copy shared packages:
cd apps/desktop yarn copy-shared-packages