mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 19:56:10 +01:00
♻️ 升级 Electron https://github.com/siyuan-note/siyuan/issues/5546
This commit is contained in:
parent
64f1f17b3e
commit
6a373ad9b2
4 changed files with 14 additions and 12 deletions
5
.github/CONTRIBUTING.md
vendored
5
.github/CONTRIBUTING.md
vendored
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
5
.github/CONTRIBUTING_zh_CN.md
vendored
5
.github/CONTRIBUTING_zh_CN.md
vendored
|
|
@ -13,7 +13,7 @@
|
|||
<summary>适用于中国大陆</summary>
|
||||
设置 Electron 镜像环境变量:
|
||||
|
||||
* 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 镜像:
|
||||
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue