Repository navigation
fix(build, Windows): full build.py now finds asset_processor.exe and finishes - #212
Merged
Merged
Conversation
…finishes The asset tasks exec'd tools/bin/asset_processor without .exe and by a relative path xmake doesn't resolve on Windows; use an absolute path with the .exe suffix. build.py no longer raises UnicodeEncodeError when stdout is redirected (cp1252). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Result: the full build stopped at asset extraction on Windows because xmake looked for
tools/bin/asset_processorwith no.exeand by a relative path it doesn't resolve there. It now points atasset_processor.exeby absolute path, so the build runs end to end (assets extracted, game compiled and staged). It also no longer crashes printing→when the output goes to a log or CI.Files:
xmake.lua,build.pyCause
os.execv("tools/bin/asset_processor", ...). On Windows the binary isasset_processor.exe, and xmake doesn't resolve the relative path against the project dir, so adding the suffix alone still fails. CI uses--slim, which skips these tasks.→crash. With stdout redirected, Python on Windows encodes with cp1252.USE_UNICODE_UIcovers the glyphs, but not→inside messages.Change
xmake.lua:path.join(os.projectdir(), "tools", "bin", "asset_processor" .. (is_host("windows") and ".exe" or "")). Same file elsewhere, now absolute.build.py:reconfigure(errors="replace")on stdout/stderr, so unencodable characters print as?.Tested
python build.py --usa > log.txtruns extract → stage.--slimunchanged. Smoke run reachesEntering AgbMain....build.py --usaruns extract → stage. Not tested on macOS.Developed with assistance from Claude Code (Opus 5.5). I reviewed and tested the changes as described above.