siyuan/.github/CONTRIBUTING.md
Vanessa 0da5bb7e71 📝
2022-08-01 10:29:21 +08:00

1.4 KiB

中文

Get the source code

  • git clone --recurse-submodules git@github.com:siyuan-note/siyuan.git For example saved in D:/siyuan/
  • switch to dev branch

User Interface

Install pnpm: npm install -g pnpm

For China mainland Set the Electron mirror environment variable:
  • macOS/Linux: export ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/
  • Windows: SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/

NPM mirror:

  • Use mirror repository pnpm --registry https://r.cnpmjs.org/ i
  • Revert to using official repository pnpm --registry https://registry.npmjs.org i

On the desktop, go to the app folder to run:

  • ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@19.0.10 -D
  • pnpm run dev
  • pnpm run start

Kernel

Desktop

  • cd kernel
  • go build --tags "fts5" -o "../app/kernel/SiYuan-Kernel.exe"
  • cd ../app/kernel
  • ./SiYuan-Kernel.exe --wd=.. --mode=dev

iOS

Android

For the mobile-end, please refer to the corresponding project repository.