This commit is contained in:
Liang Ding 2022-07-31 11:06:40 +08:00
parent 64f1f17b3e
commit 6a373ad9b2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 14 additions and 12 deletions

View file

@ -13,7 +13,7 @@ Install pnpm: `npm install -g pnpm`
<summary>For China mainland</summary>
Set the Electron mirror environment variable:
* macOS/Linux: ELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" pnpm install electron@19.0.8 -D
* macOS/Linux: `export ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
* Windows: `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
NPM mirror:
@ -22,8 +22,9 @@ NPM mirror:
* Revert to using official repository `pnpm --registry https://registry.npmjs.org i`
</details>
On the desktop, go to the app folder to compile and run:
On the desktop, go to the app folder to run:
* `pnpm install electron@19.0.10 -D`
* `pnpm run dev`
* `pnpm run start`

View file

@ -13,7 +13,7 @@
<summary>适用于中国大陆</summary>
设置 Electron 镜像环境变量:
* macOS/LinuxELECTRON_MIRROR="https://cnpmjs.org/mirrors/electron/" pnpm install electron@19.0.8 -D
* macOS/Linux`export ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
* Windows: `SET ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/`
NPM 镜像:
@ -22,8 +22,9 @@ NPM 镜像:
* 恢复使用官方仓库 `pnpm --registry https://registry.npmjs.org i`
</details>
桌面端进入 app 文件夹编译和运行:
桌面端进入 app 文件夹运行:
* `pnpm install electron@19.0.10 -D`
* `pnpm run dev`
* `pnpm run start`