Skip to content

emrg: Phase 4 启动脚本 bin/emrg + bin/emrgd(bash + Windows .cmd,rant #12 §2) - #360

Merged
argszero merged 1 commit into
masterfrom
feature/phase4-launcher-scripts
Aug 4, 2026
Merged

emrg: Phase 4 启动脚本 bin/emrg + bin/emrgd(bash + Windows .cmd,rant #12 §2)#360
argszero merged 1 commit into
masterfrom
feature/phase4-launcher-scripts

Conversation

@argszero

Copy link
Copy Markdown
Owner

Phase 4 一键安装包(rant #12)第 1 期:启动脚本。

改动:新增 bin/ 目录 4 个文件(安装布局 ~/.emrg/install/bin/ 的模板):

  • bin/emrg — bash 启动器(exec $DIR/python -m emrg)
  • bin/emrgd — bash 启动器(exec $DIR/python -m emrg.server)
  • bin/emrg.cmd / bin/emrgd.cmd — Windows 版(R60 git PATH 注入)

规格落实(rant #12 §2):

  • R71/R84:BASH_SOURCE readlink 循环,相对 target 拼当前 SOURCE dirname(多级软链实测通过)
  • R13:PYTHONPATH 含 $PREFIX/source + $PREFIX/lib
  • R61:PYTHONDONTWRITEBYTECODE=1(source/ 只读零写入)
  • R60:Windows PATH 额外含 git\cmd + git\mingw64\bin
  • 软链解析实测:绝对/相对软链均解析出正确 DIR/PREFIX

验证:bash -n 语法 OK;软链解析模拟 OK;pytest 464 passed;emrg --help OK;GUI npm test OK

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

✅ LGTM — cycle 2(Phase 4 第 1 期启动脚本:R71/R84 readlink 循环 + R13 PYTHONPATH + R61 零写入 + R60 Windows git PATH,bash -n + 软链解析实测 + 464 pytest 全绿)

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

✅ LGTM — cycle 3(启动脚本复核:readlink 循环正确、PYTHONPATH/PATH 注入完备、Windows .cmd 结构一致)

@argszeroargszero left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

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

@argszero
argszero merged commit b257662 into masterAug 4, 2026
1 check passed
@argszero
argszero deleted the feature/phase4-launcher-scripts branch August 4, 2026 14:07
Sign up for freeto 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

@argszero