mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-08 16:43:59 +08:00
1.8 KiB
1.8 KiB
🖥️ Develop
IDE Setup
VSCode like
- Editor: Cursor, etc. Any VS Code compatible editor.
- Recommended extensions are listed in
.vscode/extensions.json.
Zed
- Install extensions: Biome, oxc
- Copy the example settings file to your local Zed config:
cp .zed/settings.json.example .zed/settings.json - Customize
.zed/settings.jsonas needed (it is git-ignored).
Windows: Enable Symlinks
This project uses symlinks to synchronize files such as AGENTS.md and skills. Windows developers must enable symlink support before cloning:
- Enable Developer Mode (Settings → Update & Security → For developers), or grant
SeCreateSymbolicLinkPrivilegeviasecpol.msc. - Configure Git:
git config --global core.symlinks true - Clone (or re-clone) the repository after enabling symlink support.
Project Setup
Install
pnpm install
Development
Setup Node.js
The required Node.js version is defined in .node-version. Use a version manager like nvm or fnm to install it automatically:
nvm install
Setup pnpm
The pnpm version is locked in the packageManager field of package.json. Just enable corepack and it will use the correct version automatically:
corepack enable
Install Dependencies
pnpm install
ENV
cp .env.example .env
Start
pnpm dev
Debug
pnpm debug
Then input chrome://inspect in browser
Test
pnpm test
Build
# For windows
$ pnpm build:win
# For macOS
$ pnpm build:mac
# For Linux
$ pnpm build:linux