Skip to content

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

:memo: 更新开发指南

Liang Dingff177d5a6d29
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 8ca306ddd4..ec66810924 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -11,20 +11,24 @@ Install pnpm: `npm install -g pnpm`
<details>
<summary>For China mainland</summary>
-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/`
+Set the Electron mirror environment variable and install Electron:
+
+* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`
+* Windows:
+ * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
+ * `pnpm install [email protected] -D`
NPM mirror:
* Use mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
+
</details>
On the desktop, go to the app folder to run:
-* `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`
+* `pnpm install [email protected] -D`
* `pnpm run dev`
* `pnpm run start`
diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.md
index 3611d032b8..68ec483fb9 100644
--- a/.github/CONTRIBUTING_zh_CN.md
+++ b/.github/CONTRIBUTING_zh_CN.md
@@ -11,10 +11,13 @@
<details>
<summary>适用于中国大陆</summary>
-设置 Electron 镜像环境变量:
-* macOS/Linux:`export ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
-* Windows: `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
+设置 Electron 镜像环境变量并安装 Electron:
+
+* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`
+* Windows:
+ * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
+ * `pnpm install [email protected] -D`
NPM 镜像: