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 Eko 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 Eko and the Eko 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 Eko Framework
- Clone the code repository to your local machine:
git clone https://github.com/FellouAI/eko. - Enter the
ekodirectory:cd eko. - Switch to the branch you want,
git checkout mainfor general users, andgit checkout developfor developers. - Install dependencies using pnpm:
pnpm install. - Link the
ekodependency globally for reference later:pnpm link -g. - Compile the Eko framework:
pnpm run build.
Compiling the Eko Browser Extension
- Clone the code repository to your local machine:
git clone https://github.com/FellouAI/eko-browser-extension-template. - Enter the
eko-browser-extension-templatedirectory. - Switch to the branch you want.
- Install dependencies using pnpm:
pnpm install. - Link the
ekodependency to the current directory:pnpm link @eko-ai/eko -g. - Compile the Eko browser extension:
pnpm run build. - You can find the compiled output in the
distdirectory.