Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:hammer: Update the dev guide

Daniel8a5dafeb07eb
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 5b9c2c36e0..02c11d4268 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -5,7 +5,7 @@
* `git clone [email protected]:siyuan-note/siyuan.git`
* switch to dev branch `git checkout dev`
-## User Interface
+## NPM dependencies
Install pnpm: `npm install -g [email protected]`
@@ -16,19 +16,18 @@ Set the Electron mirror environment variable and install Electron:
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
* Windows:
- * `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
- * `pnpm install [email protected] -D`
+ * `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
+ * `pnpm install [email protected] -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 [email protected] -D`
+* `pnpm install [email protected]`
* `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
diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.md
index b897c42167..9bf5e261d9 100644
--- a/.github/CONTRIBUTING_zh_CN.md
+++ b/.github/CONTRIBUTING_zh_CN.md
@@ -14,13 +14,10 @@
设置 Electron 镜像环境变量并安装 Electron:
-* macOS/Linux:
- ```
- ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D
- ```
-* Windows:
- * `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
- * `pnpm install [email protected] -D`
+* macOS/Linux:`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install [email protected] -D`
+* Windows:
+ * `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
+ * `pnpm install [email protected] -D`
NPM 镜像:
@@ -30,7 +27,7 @@ NPM 镜像:
桌面端进入 app 文件夹运行:
-* `pnpm install [email protected] -D`
+* `pnpm install [email protected]`
* `pnpm run dev`
* `pnpm run start`