Skip to content

emrg: Phase 4 统一卸载脚本 bin/emrg-uninstall(rant #12 §8) - #361

Merged
argszero merged 1 commit into
masterfrom
feature/phase4-uninstall-script
Aug 4, 2026
Merged

emrg: Phase 4 统一卸载脚本 bin/emrg-uninstall(rant #12 §8)#361
argszero merged 1 commit into
masterfrom
feature/phase4-uninstall-script

Conversation

@argszero

@argszero argszero commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Phase 4 一键安装包(rant #12)第 2 期:统一卸载脚本。

改动:新增 bin/emrg-uninstall(Python,由平台卸载器统一调用)

  • §8 六步:停 daemon → 终止报告 → 墓地快照 → 白名单删除 → 环境清理 → 自校验
  • R90:协议 shutdown(auth 握手镜像 connect.py)+ pid SIGTERM/taskkill 兜底
  • R92:install/ 不自行删除(解释器在 install/bin,Windows NTFS 锁)——由平台卸载器删
  • R94:幂等降级(无 daemon/无 port 时纯清理)
  • R101:白名单删除(install 除外),白名单外用户文件保留 + 报告列出
  • R85:Linux ~/.local/bin/emrg 软链清理;R19:shell rc PATH 锚点块清理

验证:py_compile OK;临时 HOME 模拟运行全项通过(install 保留/用户文件保留/白名单删除/软链清理/报告+快照生成/幂等);pytest 464 passed

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 3(卸载脚本复核:六步完整、R101 白名单 + R92 install 保留 + R94 幂等降级、auth 握手正确)

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 4(卸载脚本复核通过)

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 5(第 3 个 LGTM,满足合并条件)

@argszero
argszero merged commit befa0e2 into master Aug 4, 2026
1 check passed
@argszero
argszero deleted the feature/phase4-uninstall-script branch August 4, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant