Skip to content

emrg: Phase 4 GUI 打包改造 isPackaged + 自解压 + ensureConfigTemplate(rant #12 §4/§5) - #363

Merged
argszero merged 1 commit into
masterfrom
feature/phase4-gui-packaged
Aug 4, 2026
Merged

emrg: Phase 4 GUI 打包改造 isPackaged + 自解压 + ensureConfigTemplate(rant #12 §4/§5)#363
argszero merged 1 commit into
masterfrom
feature/phase4-gui-packaged

Conversation

@argszero

@argszero argszero commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Phase 4 一键安装包(rant #12)第 4 期:GUI 打包改造。

改动

  • emrg/gui/daemon_client.js:
    • constructor 增 isPackaged(main.js 注入 app.isPackaged,R7)
    • startDaemon 打包分支:spawn 捆绑 emrgd(_findDaemonExecutable),Windows shell:true + windowsHide(R36/R66/R92b),源码模式不变
    • 新增 _findDaemonExecutable():~/.emrg/install/bin/emrgd(Windows emrgd.cmd)
  • emrg/gui/main.js:
    • new DaemonClient 传 isPackaged(原 380 行)
    • ensureConfigTemplate 打包修正(R108):无 .venv/PATH python → 内联模板直接生成(与 config.py 105-130 同源)
    • AppImage 自解压 ensureAppImageExtracted(R65/R88/R93):首次运行复制 resourcesPath/runtime → ~/.emrg/install/ + ~/.local/bin/emrg 软链 + 安装提示

验证:node --check 语法 OK;新增 2 个单测(_findDaemonExecutable 路径 + isPackaged spawn 分支);GUI 29 tests pass(原 27 + 新 2);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 5(GUI 打包改造:isPackaged 分支/_findDaemonExecutable/内联模板/自解压,29 测试全绿)

@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 6(GUI 打包改造复核通过)

@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 7(第 3 个 LGTM,满足合并条件)

@argszero
argszero merged commit e334444 into master Aug 4, 2026
1 check passed
@argszero
argszero deleted the feature/phase4-gui-packaged branch August 4, 2026 14:32
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