Repository navigation
feat(build): add editor-to-player packaged game builds - #46
Merged
Merged
Conversation
Closed
- remove the root .clang-format and the comment-language rule in CONTRIBUTING - delete docs/building_system_v1.md and the README link that pointed to it
- reuse base::path_to_utf8 instead of per-file UTF-8 conversions in apps, assets and the scene serializer - rename apps::application_paths to apps::app_paths and executable_directory() to running_executable_directory() - extract project-relative/scene path validation into apps/common/project_paths.h and reuse it in the editor and build tool - add Scene::find_by_id and base::to_upper - restore the app_paths test after the namespace rename
Yang-Junjie
commented
Nov 20, 2026
Yang-Junjie
left a comment
Contributor
Author
There was a problem hiding this comment.
approve but slop still
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.
Editor 项目此前只能在编辑器内运行。本 PR 增加首版构建流程:保存开启场景和输出目录后,Editor 调用
vulcal_build <project.vproj> <vulcal_player>,生成游戏.vpak并复制 Player;Player 从包内按逻辑路径加载场景、cooked 资产和 Lua。主要变更
build_info配置,以及同目录优先、PATH 回退的程序查找和 SDL 子进程启动。vulcal_build与vulcal_player,包含 manifest、显式/自动选包、临时产物与备份恢复、UTF-8 路径、输出别名校验,以及 snake 示例构建配置。docs/building_system_v1.md。验证
cmake --build build --parallel 8成功。ctest --test-dir build --output-on-failure运行 279 项:267 通过、6 跳过,6 项现有 ViewportTest 在SDL_WINDOW_INPUT_FOCUS断言处失败;ctest --test-dir build --rerun-failed --output-on-failure复跑这 6 项全部通过。窗口焦点测试仍存在环境相关的不稳定性。git diff --check与新增 C++ 文件的 clang-format 检查通过。首版边界与设计差异
依据 Design Building System。使用仓库现有
assets_path字段,manifest 格式版本为整数1,引擎版本为0.0.5。为兼容现有 Editor,额外打包项目资源目录外的 Lua;直接写临时 ZIP,不先复制完整散文件目录。构建使用已保存的场景、脚本及已有 cooked 资产;不重新导入、不校验资源引用完整性、不加密、不做场景/Lua 二进制化或交叉构建。逻辑路径精确匹配大小写,构建遇到 symlink 或输出位于 cooked 目录时明确失败。
当前只复制 Player 可执行文件,没有自动收集 DLL、系统运行库或新增 SDK 发行打包流程。本机动态 SDL 与 Debug C++ 运行库仍是依赖,因此本地启动验证不代表两个产物可直接发布到干净电脑。