From ff177d5a6d299d6079e9e4a5393d9b15016035d4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 1 Aug 2022 10:33:42 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E6=8C=87=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/CONTRIBUTING.md | 12 ++++++++---- .github/CONTRIBUTING_zh_CN.md | 9 ++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 8ca306ddd..ec6681092 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -11,20 +11,24 @@ 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/` +Set the Electron mirror environment variable and install Electron: + +* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install electron@19.0.10 -D` +* Windows: + * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/` + * `pnpm install electron@19.0.10 -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` +
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 install electron@19.0.10 -D` * `pnpm run dev` * `pnpm run start` diff --git a/.github/CONTRIBUTING_zh_CN.md b/.github/CONTRIBUTING_zh_CN.md index 3611d032b..68ec483fb 100644 --- a/.github/CONTRIBUTING_zh_CN.md +++ b/.github/CONTRIBUTING_zh_CN.md @@ -11,10 +11,13 @@
适用于中国大陆 -设置 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 electron@19.0.10 -D` +* Windows: + * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/` + * `pnpm install electron@19.0.10 -D` NPM 镜像: