mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🔨 Update the dev guide
This commit is contained in:
parent
51b0f817ab
commit
8a5dafeb07
2 changed files with 11 additions and 14 deletions
12
.github/CONTRIBUTING.md
vendored
12
.github/CONTRIBUTING.md
vendored
|
|
@ -5,7 +5,7 @@
|
|||
* `git clone git@github.com:siyuan-note/siyuan.git`
|
||||
* switch to dev branch `git checkout dev`
|
||||
|
||||
## User Interface
|
||||
## NPM dependencies
|
||||
|
||||
Install pnpm: `npm install -g pnpm@9.12.1`
|
||||
|
||||
|
|
@ -16,19 +16,18 @@ Set the Electron mirror environment variable and install Electron:
|
|||
|
||||
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v34.3.4 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
|
||||
NPM mirror:
|
||||
|
||||
* Use npmmirror China mirror repository `pnpm --registry https://registry.npmmirror.com/ i`
|
||||
* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
|
||||
|
||||
</details>
|
||||
|
||||
On the desktop, go to the app folder to run:
|
||||
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
* `pnpm install electron@v34.3.4-D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
@ -57,7 +56,8 @@ Note: In the development environment, the kernel process will not be automatical
|
|||
### Android
|
||||
|
||||
* `cd kernel`
|
||||
* `set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8; gomobile bind --tags fts5 -ldflags "-s -w" -v -o kernel.aar -target=android/arm64 -androidapi 26 ./mobile/`
|
||||
* `set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8`
|
||||
* `gomobile bind --tags fts5 -ldflags "-s -w" -v -o kernel.aar -target=android/arm64 -androidapi 26 ./mobile/`
|
||||
* https://github.com/siyuan-note/siyuan-android
|
||||
|
||||
### Harmony
|
||||
|
|
|
|||
13
.github/CONTRIBUTING_zh_CN.md
vendored
13
.github/CONTRIBUTING_zh_CN.md
vendored
|
|
@ -14,13 +14,10 @@
|
|||
|
||||
设置 Electron 镜像环境变量并安装 Electron:
|
||||
|
||||
* macOS/Linux:
|
||||
```
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v34.3.4 -D
|
||||
```
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@v34.3.4 -D`
|
||||
* Windows:
|
||||
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
|
||||
NPM 镜像:
|
||||
|
||||
|
|
@ -30,7 +27,7 @@ NPM 镜像:
|
|||
|
||||
桌面端进入 app 文件夹运行:
|
||||
|
||||
* `pnpm install electron@v34.3.4 -D`
|
||||
* `pnpm install electron@v34.3.4-D`
|
||||
* `pnpm run dev`
|
||||
* `pnpm run start`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue