Repository navigation
feat: add dual-edition launch isolation and Basic workbench trimming - #2
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.
本 PR 完成双版本架构 Phase 2:为 Basic 和 Professional 提供独立启动入口与数据目录隔离、为 Basic 提供受限导出 runner,并按版本裁剪编辑器界面。当前默认入口仍是 Professional / 单一产品路径。这是仓库内实现,不是新的公开 Beta;最近公开发布检查点仍是
v0.1.0-beta.2。改动 / What changed
python -m editor.main/ 默认打包LaunchFlow.exe启动时将进程上下文复位为未设置,也就是 Professional 路径,不会变成 Basic。Basic 入口是python -m editor.main_basic/LaunchFlow-Basic.exe,会先设置进程级basic上下文。Basic 不校验许可证,不采集 HWID,也不跑遗留迁移。%LOCALAPPDATA%\\LaunchFlow(开发模式LaunchFlow-Dev)。Basic 使用%LOCALAPPDATA%\\LaunchFlow-Basic(开发模式LaunchFlow-Basic-Dev)。Basic 不会探测、读取或迁移 Professional 数据;若LAUNCHFLOW_DATA_DIR指向 Professional 目录则拒绝,而不是回退。EMBEDDED_TEMPLATE未改。Basic 使用独立模板tools/basic_embedded_runner.py,不嵌入 Command / Wait,也不会盲目 shell-open 快捷方式。默认python tools/build_editor_release.py仍只打LaunchFlow.exe;Basic 需要显式加--edition basic。MainWindow,但会隐藏并禁用「+ 命令」「+ 等待」,不提供启动参数和可改的后续延迟,添加应用时只允许本地.exe/.lnk,并以 LaunchFlow Basic 文案区分界面。本 PR 不包含以下后续工作:
build_single_file_exe()加许可证闸门docs/architecture.md和CHANGELOG.md(需等这些改动稳定后再补)检查 / How it was checked
在指定的 Miniconda 解释器上运行(
Python 3.13.9,PySide6 6.9.3,PyInstaller 6.20.0,cryptography 46.0.3),相关 GUI 测试使用QT_QPA_PLATFORM=offscreen:python -m compileall -q editor shared toolstools/check_dual_edition_phase2_smoke.py未调用 PyInstaller,未构建发布产物,也未接触真实许可证或 HWID。
工作区中与本次无关的本地改动(
.ai/、CHANGELOG.md、docs/architecture.md以及若干跨平台文档)未纳入本 PR。English Summary
This PR lands Dual Edition Phase 2: separate Basic/Professional launch entries, LaunchFlow-Basic data-directory isolation with no Professional data probing or migration, a restricted Basic export runner that leaves the Professional
EMBEDDED_TEMPLATEunchanged, and Basic workbench trimming so Professional-only controls are hidden. The default entry remains the Professional / single-product path. This is in-repo implementation, not a new public Beta. A Professional export-authorization audit, a public Basic release, and updates to locally dirtyarchitecture.md/CHANGELOG.mdare left for later. Checks ran on the specified Miniconda interpreter; PyInstaller, release assets, and live licenses/HWID were not touched.