fix(ci): remove repo-level electron mirror defaults
This commit is contained in:
1 parent
625c5775f5
commit
fe62586b19
2 files changed
+2
-3
No files matched your search
@@ -5,4 +5,3 @@ strict-peer-dependencies=false
|
||||
enable-pre-post-scripts=true
|
||||
public-hoist-pattern[]=*esbuild*
|
||||
public-hoist-pattern[]=*vue-demi*
|
||||
electron_mirror="https://npmmirror.com/mirrors/electron/"
|
||||
@@ -219,7 +219,7 @@ pnpm build:desktop
|
||||
- 尝试清理并重新安装: `pnpm store prune && pnpm install`。
|
||||
|
||||
**2. Electron 安装不完整**
|
||||
- 这通常是网络问题。可以尝试配置 `electron_mirror` 环境变量或手动安装。
|
||||
- 这通常是网络问题。仓库默认不再提交 `electron_mirror` 镜像配置;如本地网络需要,请在用户级 `~/.npmrc` 或 shell 环境变量中按需配置,再重试安装。
|
||||
- 手动安装命令:
|
||||
```bash
|
||||
# (路径可能因 pnpm 版本而异)
|
||||
@@ -252,4 +252,4 @@ pnpm build:desktop
|
||||
|
||||
社区中成熟的`tRPC`框架也提供了类似的思路,其核心就是"零代码生成"的类型安全API层。我们可以借鉴其思想,甚至尝试将其集成到Electron的IPC机制中。
|
||||
|
||||
采用此方案后,我们的开发流程将变得极为高效和安全,彻底消除手动维护IPC调用可能带来的所有潜在错误。
|
||||
采用此方案后,我们的开发流程将变得极为高效和安全,彻底消除手动维护IPC调用可能带来的所有潜在错误。
|
||||
Reference in new issue
Block a user