khoj/src/interface/desktop
2023-09-12 16:35:07 -07:00
..
assets Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
chat.html Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
config.html Provide force fallback for regeneration 2023-09-12 16:35:07 -07:00
index.html Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
main.js Provide force fallback for regeneration 2023-09-12 16:35:07 -07:00
package.json Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
preload.js Provide force fallback for regeneration 2023-09-12 16:35:07 -07:00
README.md Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
renderer.js Provide force fallback for regeneration 2023-09-12 16:35:07 -07:00
todesktop.json Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
yarn.lock Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00

Run it locally

Prerequisites

Install the runtime dependencies. This command should install all dev dependencies.

yarn add

Run the application

yarn start

Deploying the Electron App

Prerequisites

Install the ToDesktop CLI. Full documentation can be found here: https://www.npmjs.com/package/@todesktop/cli

yarn global add @todesktop/cli

Configure the todesktop.json file. Fill in the id based on the application ID.

Build

This will prompt you to login. It triggers builds for all platforms.

todesktop build

If you get an error saying the command is not found, make sure that your yarn global bin directory is in your PATH environment variable. You can find the location of the global bin directory by running yarn global bin. Add this line to your .bashrc or .zshrc file: export PATH="$PATH:$(yarn global bin)".