Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,27 @@ Application 步骤用于启动外部程序,本身不等待外部程序退出

![最近方案记录](docs/images/launchflow-plan-history.png)

应用自身的设置、日志、许可和最近记录默认位于 `%LOCALAPPDATA%\LaunchFlow`。测试和自动化可以通过 `LAUNCHFLOW_DATA_DIR` 指向隔离目录。程序不会默认在源码目录、当前工作目录、桌面或 EXE 旁边创建可变数据文件夹。
当前产品路径(`python -m editor.main` 或 `LaunchFlow.exe`)会把应用自身的设置、日志、许可和最近记录放在 `%LOCALAPPDATA%\LaunchFlow`。Basic 入口(`python -m editor.main_basic`)使用相互隔离的 `%LOCALAPPDATA%\LaunchFlow-Basic`,不会读取或迁移 Professional 数据。测试和自动化可以通过 `LAUNCHFLOW_DATA_DIR` 指向隔离目录,但该覆盖不能用来让 Basic 写入 Professional 目录。程序不会默认在源码目录、当前工作目录、桌面或 EXE 旁边创建可变数据文件夹。

升级前建议备份自己保存的方案 JSON 和 `%LOCALAPPDATA%\LaunchFlow` 中需要保留的数据。LaunchFlow 的迁移策略以保守复制为主,不应覆盖更新的数据;显式选择的方案保存位置和导出位置始终由用户决定。


## 🧱 两个版本

仓库现在包含 Professional 与 Basic 两套实现路径,但这并不是说已经同时存在两个公开发布包。最近的公开检查点仍是 `v0.1.0-beta.2`,对应当前这条单一产品 / Professional 路径。

- Professional:启动 `python -m editor.main`,或打包 `LaunchFlow.exe`。它保留 Command、Wait、高级 Application 配置、现有快捷方式打开方式,以及离线许可。用户数据位于 `%LOCALAPPDATA%\LaunchFlow`。
- Basic:启动 `python -m editor.main_basic`,或打包 `LaunchFlow-Basic.exe`。它只接受 Application 与 http/https URL,启动时不要求许可证,数据位于 `%LOCALAPPDATA%\LaunchFlow-Basic`。工作台不会提供 Command、Wait、应用启动参数或自定义间隔,导出的独立启动器也使用不含这些能力的受限运行器。

开发模式分别使用 `tools/run_editor_dev.ps1`(`LaunchFlow-Dev`)和 `tools/run_editor_basic_dev.ps1`(`LaunchFlow-Basic-Dev`)。默认的 `python tools/build_editor_release.py` 仍然只打包 Professional;Basic 需要显式加上 `--edition basic`。在公开发布 Basic 之前,请不要把源码里的第二条入口当成已经上线的安装包。

## 📦 导出 Windows 启动器

完成试运行后,可点击“导出 EXE”或按 `Ctrl+E`。导出对话框会展示输出目录、文件名、方案步骤摘要、携带文件检查以及构建状态。真正开始构建前,用户仍有机会返回编辑器修正方案。

![导出工作流](docs/images/launchflow-export-workflow.png)

导出的启动器是针对当前方案生成的 Windows onefile 程序。它包含 LaunchFlow 运行方案所需的启动器代码和方案数据,但不会自动捆绑所有第三方运行环境:
导出的启动器是针对当前方案生成的 Windows onefile 程序。它包含运行该方案所需的启动器代码和方案数据,但不会自动捆绑所有第三方运行环境。Professional 入口导出的运行器仍包含 Command 与 Wait;从 Basic 入口导出时,会改用一份不含这些能力的受限运行器:

- URL 仍依赖目标电脑的默认浏览器和网络条件。
- Command 仍依赖目标电脑已安装的命令、Shell、PATH 和相关文件。
Expand Down Expand Up @@ -132,6 +142,8 @@ python -m pip install "PySide6==6.9.3" "PyInstaller==6.20.0" cryptography
python -m editor.main
```

当前这条命令启动的是 Professional / 现有产品路径。若要在源码模式下启动 Basic(不要求许可证,数据写入 `LaunchFlow-Basic`),使用 `python -m editor.main_basic`。

若 PowerShell 的执行策略阻止激活脚本,可以直接调用虚拟环境中的 Python,而不修改系统策略:

```powershell
Expand Down Expand Up @@ -178,6 +190,7 @@ data/ 源码模式使用的只读默认资源

```powershell
python tools/check_readme_docs_smoke.py
python tools/check_dual_edition_phase2_smoke.py
python tools/check_editor_gui_smoke.py
python tools/check_step_reorder_smoke.py
python tools/check_log_presentation_smoke.py
Expand Down
17 changes: 15 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,27 @@ Plans are JSON files saved at a location selected by the user. The Recent Plans

![Recent plan history](docs/images/launchflow-plan-history.png)

LaunchFlow stores its own settings, logs, license state, and recent-plan metadata under `%LOCALAPPDATA%\LaunchFlow` by default. Automated checks can point `LAUNCHFLOW_DATA_DIR` to an isolated location. Normal operation does not create mutable data folders beside the source tree, in the current working directory, on the desktop, or next to a packaged EXE.
The current product path (`python -m editor.main` or `LaunchFlow.exe`) stores its own settings, logs, license state, and recent-plan metadata under `%LOCALAPPDATA%\LaunchFlow`. The Basic entry (`python -m editor.main_basic`) uses a separate `%LOCALAPPDATA%\LaunchFlow-Basic` tree and does not read or migrate Professional data. Automated checks can point `LAUNCHFLOW_DATA_DIR` to an isolated location, but that override must not be used to make Basic write into the Professional directory. Normal operation does not create mutable data folders beside the source tree, in the current working directory, on the desktop, or next to a packaged EXE.

Before an upgrade, back up valuable plan JSON files and any application data that must be retained. Legacy migration is intentionally conservative and copy-oriented; it should not overwrite newer data. Explicit plan-save and export destinations remain the user's choice even though background state is centralized.


## 🧱 Two Editions

The repository now contains Professional and Basic implementation paths. That does not mean two public release packages already exist. The latest published checkpoint remains `v0.1.0-beta.2`, which corresponds to the current single-product / Professional path.

- Professional: start `python -m editor.main`, or package `LaunchFlow.exe`. It keeps Command, Wait, advanced Application options, the existing shortcut-open behavior, and offline licensing. User data lives under `%LOCALAPPDATA%\LaunchFlow`.
- Basic: start `python -m editor.main_basic`, or package `LaunchFlow-Basic.exe`. It accepts only Application and http/https URL steps, does not require a license at startup, and stores data under `%LOCALAPPDATA%\LaunchFlow-Basic`. The workbench does not offer Command, Wait, application arguments, or custom delays, and exported standalone launchers use a restricted runner that does not embed those capabilities.

Developer mode uses `tools/run_editor_dev.ps1` (`LaunchFlow-Dev`) and `tools/run_editor_basic_dev.ps1` (`LaunchFlow-Basic-Dev`). The default `python tools/build_editor_release.py` command still packages only Professional; Basic requires an explicit `--edition basic`. Until a public Basic release exists, do not treat the second source entry as a shipping installer.

## 📦 Exporting a Windows Launcher

After a successful test run, choose Export EXE or press `Ctrl+E`. The export dialog presents the destination, output name, plan summary, bundled-file review, and build state. It keeps the plan visible behind the focused dialog, allowing the user to cancel and correct the workflow before starting a build.

![Export workflow](docs/images/launchflow-export-workflow.png)

The result is a Windows onefile launcher created for the current plan. It contains the LaunchFlow runtime needed to read that plan and the embedded plan data, but it does not automatically bundle every third-party runtime:
The result is a Windows onefile launcher created for the current plan. It contains the runner code needed to read that plan and the embedded plan data, but it does not automatically bundle every third-party runtime. A launcher exported from the Professional entry still includes Command and Wait; a launcher exported from the Basic entry uses a restricted runner that does not include those capabilities:

- A URL still depends on the target computer's default browser and network conditions.
- A Command still depends on the selected shell, executable, PATH, files, and runtime being present on the target computer.
Expand Down Expand Up @@ -132,6 +142,8 @@ python -m pip install "PySide6==6.9.3" "PyInstaller==6.20.0" cryptography
python -m editor.main
```

That command starts the Professional / current product path. To start Basic from source (no license required, data written to `LaunchFlow-Basic`), use `python -m editor.main_basic`.

If local PowerShell policy prevents running the activation script, call the virtual environment's Python directly instead of changing machine-wide policy:

```powershell
Expand Down Expand Up @@ -178,6 +190,7 @@ The repository provides independent smoke scripts that can be run directly on Wi

```powershell
python tools/check_readme_docs_smoke.py
python tools/check_dual_edition_phase2_smoke.py
python tools/check_editor_gui_smoke.py
python tools/check_step_reorder_smoke.py
python tools/check_log_presentation_smoke.py
Expand Down
16 changes: 15 additions & 1 deletion docs/beta-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,21 @@ python tools/generate_readme_screenshots.py
python tools/check_readme_docs_smoke.py
```

## 10. 免责声明
## 10. 双版本实现说明(2026-11-24)

当前对外测试流程仍然对应 Professional / 现有单一产品路径:启动 `LaunchFlow.exe` 或 `python -m editor.main`,走离线授权,数据位于 `%LOCALAPPDATA%\LaunchFlow`。最近公开检查点仍是 `v0.1.0-beta.2`。

仓库里已经增加 Basic 实现入口,但这不是新的公开 Beta 包:

- 源码启动:`python -m editor.main_basic`
- 开发数据目录:`tools/run_editor_basic_dev.ps1` 指向 `%LOCALAPPDATA%\LaunchFlow-Basic-Dev`
- 正式数据目录:`%LOCALAPPDATA%\LaunchFlow-Basic`
- Basic 不读取、不迁移 Professional 数据,启动时也不要求许可证
- Basic 只接受 Application 与 http/https URL;工作台不提供 Command、Wait、应用启动参数或自定义间隔;导出使用受限运行器

如果当前测试任务是验证已发布的 Beta 体验,请继续使用 Professional 入口和本文件前面的授权流程。不要把源码中的 Basic 入口误认为已经随 `v0.1.0-beta.2` 一起发布。

## 11. 免责声明

当前版本仍属于 Beta 测试版。

Expand Down
12 changes: 12 additions & 0 deletions docs/dual-edition-phase0-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,15 @@ Phase 1a 将 Basic 方案校验提升为 `shared/basic_policy.py` 中可复用
- 映射网络驱动器在合同中已被拒绝。Phase 1b 通过注入或真实的 Windows 盘符分类器实施该拒绝;词法盘符路径不会被自动当成本地路径。
- Professional 导出授权在 Phase 1 期间保持不变,仍需后续单独审计。Phase 1b 没有修改许可校验、HWID 采集或导出授权逻辑。
- Basic 校验已按门控方式接入现有方案入口,但默认产品路径仍是当前 Professional / 单一产品行为,因为启动入口尚未引入。

---

## 附录:Phase 2 实施备注(2026-11-24,Asia/Shanghai)

本附录不改写 Phase 0 已冻结的历史决策和当时记录的现有行为。

- 启动入口、数据目录隔离和 Basic 导出运行器已在 Phase 2 落地,详见 docs/dual-edition-phase2-launch-isolation.md。
- 当前产品入口仍然是 Professional / 未设置路径;Basic 必须通过独立入口显式激活。
- Basic 数据根现为 LaunchFlow-Basic;该路径不得回退到 Professional 数据目录,也不得探测或迁移 Professional 数据。
- Professional EMBEDDED_TEMPLATE 保持不变;Basic 使用独立的受限运行器模板。
- Professional 导出授权仍待后续单独审计。
12 changes: 12 additions & 0 deletions docs/dual-edition-phase1b-windows-adapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,15 @@ Phase 1b **没有**引入 Basic / Professional 启动入口,没有切换数据
4. 单独审计 Professional 导出授权,这不在本阶段范围内。

在这些工作完成之前,Phase 1b 提供的是真实 Windows 适配器,以及一条默认关闭的 Basic 校验路径。

---

## 附录:Phase 2 追加说明(2026-11-24,Asia/Shanghai)

以下内容不改写上文已记录的 Phase 1b 行为,只补充后续已实现事项:

- 已新增明确的 Basic 启动入口 `editor/main_basic.py`,并在启动时设置进程级 Basic 上下文。当前产品入口 `editor/main.py` 仍保持 Professional / 未设置路径,不会被改成 Basic。
- 已实现 `LaunchFlow-Basic` 数据目录隔离,Basic 不会探测或迁移 Professional 数据。
- 已为 Basic 导出提供独立的受限运行器模板;Professional `EMBEDDED_TEMPLATE` 保持不变。
- Professional 导出授权仍待后续单独审计。
- 详见 `docs/dual-edition-phase2-launch-isolation.md`。
Loading
Loading