Build from source
If you
- encounter compatibility issues during installation;
- want to contribute to this project;
- think compiling projects is cool.
Then this document will teach you how to compile the Lyvo browser extension from source code. Don’t worry, it’s all very simple.
Prerequisites
- You need to install Git, a distributed version control system, which we use to fetch and manage source code.
- You need to install the Node.js environment, because Lyvo and the Lyvo browser extension are written in JavaScript/TypeScript and need to be compiled in this environment.
- You also need to install pnpm, an efficient package management tool, which we will use to install dependencies and compile code.
Compiling the Lyvo Framework
- Clone the code repository to your local machine:
git clone https://github.com/LyvoAI/lyvo
. - Enter the
lyvo
directory:cd lyvo
. - Switch to the branch you want,
git checkout main
for general users, andgit checkout develop
for developers. - Install dependencies using pnpm:
pnpm install
. - Link the
lyvo
dependency globally for reference later:pnpm link -g
. - Compile the Lyvo framework:
pnpm run build
.
Compiling the Lyvo Browser Extension
- Clone the code repository to your local machine:
git clone https://github.com/LyvoAI/lyvo-browser-extension-template
. - Enter the
lyvo-browser-extension-template
directory. - Switch to the branch you want.
- Install dependencies using pnpm:
pnpm install
. - Link the
lyvo
dependency to the current directory:pnpm link @lyvo-ai/lyvo -g
. - Compile the Lyvo browser extension:
pnpm run build
. - You can find the compiled output in the
dist
directory.