This commit is contained in:
Daniel 2025-08-01 20:51:04 +08:00
parent a088cf8706
commit 309a9995d8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 55 additions and 54 deletions

View file

@ -7,17 +7,17 @@
## NPM dependencies
Install pnpm: `npm install -g pnpm@10.13.1`
Install pnpm: `npm install -g pnpm@10.14.0`
<details>
<summary>For China mainland</summary>
Set the Electron mirror environment variable and install Electron:
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@37.2.3 -D`
* macOS/Linux: `ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@37.2.5 -D`
* Windows:
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install electron@37.2.3 -D`
* `pnpm install electron@37.2.5 -D`
NPM mirror:
@ -27,7 +27,7 @@ NPM mirror:
Enter the app folder and execute:
* `pnpm install electron@37.2.3 -D`
* `pnpm install electron@37.2.5 -D`
* `pnpm run dev`
* `pnpm run start`

View file

@ -7,17 +7,17 @@
## NPM 依赖
安装 pnpm`npm install -g pnpm@10.13.1`
安装 pnpm`npm install -g pnpm@10.14.0`
<details>
<summary>适用于中国大陆</summary>
设置 Electron 镜像环境变量并安装 Electron
* macOS/Linux`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@37.2.3 -D`
* macOS/Linux`ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install electron@37.2.5 -D`
* Windows
* `SET ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/`
* `pnpm install electron@37.2.3 -D`
* `pnpm install electron@37.2.5 -D`
NPM 镜像:
@ -27,7 +27,7 @@ NPM 镜像:
进入 app 文件夹执行:
* `pnpm install electron@37.2.3 -D`
* `pnpm install electron@37.2.5 -D`
* `pnpm run dev`
* `pnpm run start`

View file

@ -4,7 +4,7 @@
"description": "Refactor your thinking",
"homepage": "https://b3log.org/siyuan",
"main": "./electron/main.js",
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@10.14.0",
"scripts": {
"lint": "eslint . --fix --cache",
"dev": "webpack --mode development",
@ -58,7 +58,7 @@
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^7.1.2",
"dayjs": "^1.11.5",
"electron": "37.2.3",
"electron": "37.2.5",
"electron-builder": "26.0.12",
"encoding": "^0.1.13",
"esbuild-loader": "^3.0.1",

89
app/pnpm-lock.yaml generated
View file

@ -10,7 +10,7 @@ importers:
dependencies:
'@electron/remote':
specifier: ^2.1.3
version: 2.1.3(electron@37.2.3)
version: 2.1.3(electron@37.2.5)
devDependencies:
'@eslint/eslintrc':
specifier: ^3.3.1
@ -40,8 +40,8 @@ importers:
specifier: ^1.11.5
version: 1.11.13
electron:
specifier: 37.2.3
version: 37.2.3
specifier: 37.2.5
version: 37.2.5
electron-builder:
specifier: 26.0.12
version: 26.0.12(electron-builder-squirrel-windows@26.0.11)
@ -459,36 +459,42 @@ packages:
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
libc: [glibc]
'@parcel/watcher-linux-arm-musl@2.5.1':
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
libc: [musl]
'@parcel/watcher-linux-arm64-glibc@2.5.1':
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@parcel/watcher-linux-arm64-musl@2.5.1':
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
libc: [musl]
'@parcel/watcher-linux-x64-glibc@2.5.1':
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
libc: [glibc]
'@parcel/watcher-linux-x64-musl@2.5.1':
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
libc: [musl]
'@parcel/watcher-win32-arm64@2.5.1':
resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}
@ -1206,8 +1212,8 @@ packages:
resolution: {integrity: sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==}
engines: {node: '>=8.0.0'}
electron@37.2.3:
resolution: {integrity: sha512-JRKKn8cRDXDfkC+oWISbYs+c+L6RA776JM0NiB9bn2yV8H/LnBUlVPzKKfsXgrUIokN4YcbCw694vfAdEJwtGw==}
electron@37.2.5:
resolution: {integrity: sha512-719ZqEp43rj6xDJMICm4CIXl8keFFgvVNO9Ix6OtjNjrh9HtYlP/1WiYeRohnXj06aLyGx5NCzrHbG7j3BxO9w==}
engines: {node: '>= 12.20.55'}
hasBin: true
@ -1594,9 +1600,6 @@ packages:
htmlparser2@6.1.0:
resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==}
http-cache-semantics@4.1.1:
resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==}
http-cache-semantics@4.2.0:
resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==}
@ -2816,7 +2819,7 @@ snapshots:
'@electron/get@2.0.3':
dependencies:
debug: 4.4.0
debug: 4.4.1
env-paths: 2.2.1
fs-extra: 8.1.0
got: 11.8.6
@ -2837,7 +2840,7 @@ snapshots:
make-fetch-happen: 10.2.1
nopt: 6.0.0
proc-log: 2.0.1
semver: 7.7.1
semver: 7.7.2
tar: 6.2.1
which: 2.0.2
transitivePeerDependencies:
@ -2846,7 +2849,7 @@ snapshots:
'@electron/notarize@2.5.0':
dependencies:
debug: 4.4.0
debug: 4.4.1
fs-extra: 9.1.0
promise-retry: 2.0.1
transitivePeerDependencies:
@ -2855,7 +2858,7 @@ snapshots:
'@electron/osx-sign@1.3.1':
dependencies:
compare-version: 0.1.2
debug: 4.4.0
debug: 4.4.1
fs-extra: 10.1.0
isbinaryfile: 4.0.10
minimist: 1.2.8
@ -2868,7 +2871,7 @@ snapshots:
'@electron/node-gyp': https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2
'@malept/cross-spawn-promise': 2.0.0
chalk: 4.1.2
debug: 4.4.0
debug: 4.4.1
detect-libc: 2.0.3
fs-extra: 10.1.0
got: 11.8.6
@ -2876,22 +2879,22 @@ snapshots:
node-api-version: 0.2.1
ora: 5.4.1
read-binary-file-arch: 1.0.6
semver: 7.7.1
semver: 7.7.2
tar: 6.2.1
yargs: 17.7.2
transitivePeerDependencies:
- bluebird
- supports-color
'@electron/remote@2.1.3(electron@37.2.3)':
'@electron/remote@2.1.3(electron@37.2.5)':
dependencies:
electron: 37.2.3
electron: 37.2.5
'@electron/universal@2.0.1':
dependencies:
'@electron/asar': 3.4.1
'@malept/cross-spawn-promise': 2.0.0
debug: 4.4.0
debug: 4.4.1
dir-compare: 4.2.0
fs-extra: 11.3.0
minimatch: 9.0.5
@ -2989,7 +2992,7 @@ snapshots:
'@eslint/config-array@0.20.0':
dependencies:
'@eslint/object-schema': 2.1.6
debug: 4.4.0
debug: 4.4.1
minimatch: 3.1.2
transitivePeerDependencies:
- supports-color
@ -3085,7 +3088,7 @@ snapshots:
'@malept/flatpak-bundler@0.4.0':
dependencies:
debug: 4.4.0
debug: 4.4.1
fs-extra: 9.1.0
lodash: 4.17.21
tmp-promise: 3.0.3
@ -3107,7 +3110,7 @@ snapshots:
'@npmcli/fs@2.1.2':
dependencies:
'@gar/promisify': 1.1.3
semver: 7.7.1
semver: 7.7.2
'@npmcli/move-file@2.0.1':
dependencies:
@ -3298,7 +3301,7 @@ snapshots:
dependencies:
'@typescript-eslint/typescript-estree': 8.30.1(typescript@4.9.5)
'@typescript-eslint/utils': 8.30.1(eslint@9.24.0)(typescript@4.9.5)
debug: 4.4.0
debug: 4.4.1
eslint: 9.24.0
ts-api-utils: 2.1.0(typescript@4.9.5)
typescript: 4.9.5
@ -3311,11 +3314,11 @@ snapshots:
dependencies:
'@typescript-eslint/types': 8.30.1
'@typescript-eslint/visitor-keys': 8.30.1
debug: 4.4.0
debug: 4.4.1
fast-glob: 3.3.3
is-glob: 4.0.3
minimatch: 9.0.5
semver: 7.7.1
semver: 7.7.2
ts-api-utils: 2.1.0(typescript@4.9.5)
typescript: 4.9.5
transitivePeerDependencies:
@ -3447,7 +3450,7 @@ snapshots:
agent-base@6.0.2:
dependencies:
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
@ -3558,7 +3561,7 @@ snapshots:
builder-util-runtime: 9.3.1
chromium-pickle-js: 0.2.0
config-file-ts: 0.2.8-rc1
debug: 4.4.0
debug: 4.4.1
dmg-builder: 26.0.12(electron-builder-squirrel-windows@26.0.11)
dotenv: 16.5.0
dotenv-expand: 11.0.7
@ -3575,7 +3578,7 @@ snapshots:
minimatch: 10.0.1
plist: 3.1.0
resedit: 1.7.2
semver: 7.7.1
semver: 7.7.2
tar: 6.2.1
temp-file: 3.4.0
tiny-async-pool: 1.3.0
@ -3655,7 +3658,7 @@ snapshots:
builder-util-runtime@9.3.1:
dependencies:
debug: 4.4.0
debug: 4.4.1
sax: 1.4.1
transitivePeerDependencies:
- supports-color
@ -3668,7 +3671,7 @@ snapshots:
builder-util-runtime: 9.3.1
chalk: 4.1.2
cross-spawn: 7.0.6
debug: 4.4.0
debug: 4.4.1
fs-extra: 10.1.0
http-proxy-agent: 7.0.2
https-proxy-agent: 7.0.6
@ -3711,7 +3714,7 @@ snapshots:
dependencies:
clone-response: 1.0.3
get-stream: 5.2.0
http-cache-semantics: 4.1.1
http-cache-semantics: 4.2.0
keyv: 4.5.4
lowercase-keys: 2.0.0
normalize-url: 6.1.0
@ -4062,7 +4065,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
electron@37.2.3:
electron@37.2.5:
dependencies:
'@electron/get': 2.0.3
'@types/node': 22.15.3
@ -4235,7 +4238,7 @@ snapshots:
extract-zip@2.0.1:
dependencies:
debug: 4.4.0
debug: 4.4.1
get-stream: 5.2.0
yauzl: 2.10.0
optionalDependencies:
@ -4430,7 +4433,7 @@ snapshots:
es6-error: 4.1.1
matcher: 3.0.0
roarr: 2.15.4
semver: 7.7.1
semver: 7.7.2
serialize-error: 7.0.1
optional: true
@ -4544,22 +4547,20 @@ snapshots:
domutils: 2.8.0
entities: 2.2.0
http-cache-semantics@4.1.1: {}
http-cache-semantics@4.2.0: {}
http-proxy-agent@5.0.0:
dependencies:
'@tootallnate/once': 2.0.0
agent-base: 6.0.2
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
http-proxy-agent@7.0.2:
dependencies:
agent-base: 7.1.3
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
@ -4571,14 +4572,14 @@ snapshots:
https-proxy-agent@5.0.1:
dependencies:
agent-base: 6.0.2
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
https-proxy-agent@7.0.6:
dependencies:
agent-base: 7.1.3
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
@ -4940,7 +4941,7 @@ snapshots:
node-abi@3.74.0:
dependencies:
semver: 7.7.1
semver: 7.7.2
node-addon-api@1.7.2:
optional: true
@ -4950,7 +4951,7 @@ snapshots:
node-api-version@0.2.1:
dependencies:
semver: 7.7.1
semver: 7.7.2
node-releases@2.0.19: {}
@ -5163,7 +5164,7 @@ snapshots:
read-binary-file-arch@1.0.6:
dependencies:
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color
@ -5328,7 +5329,7 @@ snapshots:
simple-update-notifier@2.0.0:
dependencies:
semver: 7.7.1
semver: 7.7.2
sirv@2.0.4:
dependencies:
@ -5348,7 +5349,7 @@ snapshots:
socks-proxy-agent@7.0.0:
dependencies:
agent-base: 6.0.2
debug: 4.4.0
debug: 4.4.1
socks: 2.8.6
transitivePeerDependencies:
- supports-color
@ -5405,7 +5406,7 @@ snapshots:
sumchecker@3.0.1:
dependencies:
debug: 4.4.0
debug: 4.4.1
transitivePeerDependencies:
- supports-color