Repository navigation
fix(windows): 修复 Electron 沙箱启动权限并改善安装目录改名失败 - #132
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
部分 Windows 目录继承的 AppContainer ACL 会让 Electron 沙箱子进程启动失败,表现为双击无窗口、GPU/renderer 退出
0x80000003,关闭 GPU 仍无效。本次为明确列出的 Electron 原生运行文件及语言包补齐受限应用包的读取/执行权限;安装、更新及创建窗口前共用同一实现,覆盖旧更新器升级和 ZIP 解压后的首次启动。同时处理安装末尾目录改名遇到临时占用便立即失败的问题:解压前检查目录创建/改名/删除;最终改名对 Windows 访问拒绝、共享冲突最多重试 5 秒,可取消,出现同名目标时拒绝覆盖,持续失败保留具体路径及系统错误。
实现边界
验证
internal/electronaccess、internal/portable、internal/updater、cmd/eduwork-extract通过。真实 Electron 验证使用最小应用,未将其表述为完整产品升级验收;发布前仍需用正式候选包完成完整产品安装与升级验证。目录改名的另一起历史反馈尚无完整现场,重试解决可恢复的临时占用,不能消除持久目录权限限制。
已合入 #76 后的 main,保留新 Node/Bash 构建流程和本 PR 原生权限/安装测试,刷新源码回执后重新执行 CI。