Przeglądaj źródła

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 lat temu
rodzic
commit
125fd486cc
2 zmienionych plików z 14 dodań i 7 usunięć
  1. 8 4
      .github/CONTRIBUTING.md
  2. 6 3
      .github/CONTRIBUTING_zh_CN.md

+ 8 - 4
.github/CONTRIBUTING.md

@@ -11,20 +11,24 @@ Install pnpm: `npm install -g pnpm`
 
 
 <details>
 <details>
 <summary>For China mainland</summary>
 <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 electron@19.0.10 -D`
+* Windows:
+    * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
+    * `pnpm install electron@19.0.10 -D`
 
 
 NPM mirror:
 NPM mirror:
 
 
 * Use mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
 * Use mirror repository `pnpm --registry https://r.cnpmjs.org/ i`
 * Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
 * Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
+
 </details>
 </details>
 
 
 On the desktop, go to the app folder to run:
 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 dev`
 * `pnpm run start`
 * `pnpm run start`
 
 

+ 6 - 3
.github/CONTRIBUTING_zh_CN.md

@@ -11,10 +11,13 @@
 
 
 <details>
 <details>
 <summary>适用于中国大陆</summary>
 <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 electron@19.0.10 -D`
+* Windows:
+    * `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
+    * `pnpm install electron@19.0.10 -D`
 
 
 NPM 镜像:
 NPM 镜像: