Skip to content

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

:art: Downgrade Electron https://github.com/siyuan-note/siyuan/issues/9342

Danield0121cd95019
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index e425eddf6d..5fb343787d 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -16,10 +16,10 @@ Install pnpm: `npm install -g pnpm`
Set the Electron mirror environment variable and install Electron:
-* macOS/Linux: `ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D`
+* 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`
+ * `pnpm install [email protected] -D`
NPM mirror:
@@ -30,7 +30,7 @@ NPM mirror:
On the desktop, go to the app folder to run:
-* `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 1563232f47..2134d3a996 100644
--- a/.github/CONTRIBUTING_zh_CN.md
+++ b/.github/CONTRIBUTING_zh_CN.md
@@ -18,11 +18,11 @@
* macOS/Linux:
```
- ELECTRON_MIRROR=https://cnpmjs.org/mirrors/electron/ pnpm install [email protected] -D
+ 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`
+ * `pnpm install [email protected] -D`
NPM 镜像:
@@ -32,7 +32,7 @@ NPM 镜像:
桌面端进入 app 文件夹运行:
-* `pnpm install [email protected] -D`
+* `pnpm install [email protected] -D`
* `pnpm run dev`
* `pnpm run start`
diff --git a/app/package.json b/app/package.json
index 9d6d677b4a..ef7f4dc75d 100644
--- a/app/package.json
+++ b/app/package.json
@@ -53,7 +53,7 @@
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.7.1",
"dayjs": "^1.11.5",
- "electron": "26.3.0",
+ "electron": "25.9.0",
"electron-builder": "^24.6.3",
"encoding": "^0.1.13",
"esbuild-loader": "^3.0.1",
diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml
index 4507ac7fa6..3566e0010f 100644
--- a/app/pnpm-lock.yaml
+++ b/app/pnpm-lock.yaml
@@ -7,7 +7,7 @@ settings:
dependencies:
'@electron/remote':
specifier: ^2.0.11
- version: 2.0.11([email protected])
+ version: 2.0.11([email protected])
devDependencies:
'@types/node':
@@ -32,8 +32,8 @@ devDependencies:
specifier: ^1.11.5
version: 1.11.5
electron:
- specifier: 26.3.0
- version: 26.3.0
+ specifier: 25.9.0
+ version: 25.9.0
electron-builder:
specifier: ^24.6.3
version: 24.6.3
@@ -160,12 +160,12 @@ packages:
- supports-color
dev: true
resolution: {integrity: sha512-PYEs7W3GrQNuhgiMHjFEvL5MbAL6C7m1AwSAHGqC+xc33IdP7rcGtJSdTP2eg1ssyB3oI00KwTsiSlsQbAoXpA==}
peerDependencies:
electron: '>= 13.0.0'
dependencies:
- electron: 26.3.0
+ electron: 25.9.0
dev: false
/@electron/[email protected]:
@@ -1669,8 +1669,8 @@ packages:
resolution: {integrity: sha512-YoVeFrGd/7ROjz4R9uPoND1K/hSRC/xADy9639ZmIZeJSaBnKdYx3I6LMPsY7CXLpK7JFgKQVzeZ/dk2br6Eaw==}
dev: true
- resolution: {integrity: sha512-7ZpvSHu+jmqialSvywTZnOQZZGLqlyj+yV5HGDrEzFnMiFaXBRpbByHgoUhaExJ/8t/0xKQjKlMRAY65w+zNZQ==}
+ resolution: {integrity: sha512-wgscxf2ORHL/8mAQfy7l9rVDG//wrG9RUQndG508kCCMHRq9deFyZ4psOMzySheBRSfGMcFoRFYSlkAeZr8cFg==}
engines: {node: '>= 12.20.55'}
hasBin: true
requiresBuild: true