cherry-studio/docs/dev.md
SuYao b2b0fe9072
chore: update electron configuration and add debug script (#6361)
* chore: update electron configuration and add debug script

- Added sourcemap generation for development builds in electron.vite.config.ts.
- Introduced a new debug script in package.json for easier debugging with remote inspection.

* docs: add debug section to development documentation

- Introduced a new section for debugging instructions, including the command to run the debug script and how to access the Chrome inspect tool.
2025-05-26 11:48:19 +08:00

794 B

🖥️ Develop

IDE Setup

Cursor + ESLint + Prettier

Project Setup

Install

yarn

Development

Setup Node.js

Download and install Node.js v20.x.x

Setup Yarn

corepack enable
corepack prepare yarn@4.6.0 --activate

Install Dependencies

yarn install

Start

yarn dev

Debug

yarn debug

Then input chrome://inspect in browser

Test

yarn test

Build

# For windows
$ yarn build:win

# For macOS
$ yarn build:mac

# For Linux
$ yarn build:linux