mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-01-24 09:23:07 +08:00
feat: 解决部署异常
This commit is contained in:
1
.npmrc
1
.npmrc
@@ -10,6 +10,7 @@ couchbase-binary-host-mirror=https://npmmirror.com/mirrors/couchbase/v{version}
|
||||
debug-binary-host-mirror=https://npmmirror.com/mirrors/node-inspector
|
||||
electron-mirror=https://npmmirror.com/mirrors/electron/
|
||||
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
|
||||
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
|
||||
flow-bin-binary-host-mirror=https://npmmirror.com/mirrors/flow/v
|
||||
fse-binary-host-mirror=https://npmmirror.com/mirrors/fsevents
|
||||
fuse-bindings-binary-host-mirror=https://npmmirror.com/mirrors/fuse-bindings/v{version}
|
||||
|
||||
10
README.md
10
README.md
@@ -38,6 +38,16 @@ pnpm build:linux
|
||||
pnpm build:all
|
||||
```
|
||||
|
||||
## 备注
|
||||
|
||||
- electron 启动/build错误
|
||||
|
||||
```bash
|
||||
npm install electron-fix -g
|
||||
|
||||
electron-fix start # 会自动安装electron依赖
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
@@ -98,7 +98,7 @@ const checkUpdate = (win) => {
|
||||
|
||||
// 等待 3 秒再检查更新,确保窗口准备完成,用户进入系统
|
||||
setTimeout(() => {
|
||||
autoUpdater.checkForUpdatesAndNotify().catch()
|
||||
// autoUpdater.checkForUpdatesAndNotify().catch()
|
||||
}, 3000)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user