mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
1.6 KiB
1.6 KiB
Get the source code
git clone --recurse-submodules git@github.com:siyuan-note/siyuan.gitFor example saved inD:/siyuan/- switch to dev branch
User Interface
Install pnpm: npm install -g pnpm
For China mainland
Set the Electron mirror environment variable and install Electron:
- macOS/Linux:
ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@25.0.1 -D - Windows:
SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/pnpm install electron@25.0.1 -D
NPM mirror:
- Use npmmirror China 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:
pnpm install electron@25.0.1 -Dpnpm run devpnpm run start
Note: In the development environment, the kernel process will not be automatically started, and you need to manually start the kernel process first.
Kernel
Desktop
cd kernelgo build --tags "fts5" -o "../app/kernel/SiYuan-Kernel.exe"cd ../app/kernel./SiYuan-Kernel.exe --wd=.. --mode=dev
iOS
cd kernelgomobile bind --tags fts5 -ldflags '-s -w' -v -o ./ios/iosk.xcframework -target=ios ./mobile/- https://github.com/siyuan-note/siyuan-ios
Android
cd kernelgomobile bind --tags fts5 -ldflags '-s -w' -v -o kernel.aar -target='android/arm64' ./mobile/- https://github.com/siyuan-note/siyuan-android
For the mobile-end, please refer to the corresponding project repository.