Skip to content

Bundle zbic and require it in the dependency probe - #258

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/bundle-zbic
Oct 30, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/bundle-zbic

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

What and why

Fixes #251. Thanks @vandriesadrien for the report.

Building EA Sports FC 27 with the release app (v0.7.2) stopped with ZBIC (zstd) segments need the zbic package (python3 -m pip install zbic). dm/tools/nso.py imports the optional zbic package for the modules of system 22.0.0 and later (Nintendo's zstd variant), and the bundled Python had lz4, capstone, fontTools and nsz but not zbic.

  • The bundle pins zbic==1.0.1.post1 (frontend/tools/bundled-python-requirements.txt, a macOS arm64 wheel exists for CPython 3.13). bundle_tools.sh and check_bundle.sh import it, so a release build without zbic fails in the workflow's check step.
  • The launcher's "Python + packages" probe and the venv install (pipPackages) now include zbic, in the SwiftUI and the Qt front end. It is a regular required package: the launcher cannot know before the extraction whether a game has system 22+ modules.
  • A failed build with this message gets a failure row (zbic) with an "Install zbic" button, which runs the venv install. Texts in English, Chinese and Swedish, no semicolons (there is no German table on main).
  • Docs that list the packages (BUILDING, READMEs) name zbic.

Nothing under dm/, scripts/, docs/, ref/ or patches/ is touched.

Checked

  • Tests: cd frontend && swift build && swift test (472 tests, 0 failures), new tests for the probe (a stub Python without zbic fails it, with zbic passes it), pipPackages, and the failure row matcher and texts. Qt: python3 -m unittest discover -s frontend-qt/tests OK. python3 scripts/patches.py check OK.
  • Visual QA: not applicable, one extra card variant that reuses the existing layout.
  • Run on a device or Mac: not run. The release workflow was not run either, so the bundled build with zbic is first exercised by this PR's merge and the next release build.

Screenshots

None.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly
  • Not an engine or game profile fix
  • No keys, game files or data extracted from a game

Note for @LNPANDY: this changes the release build. The next release app grows by the zbic wheel (about 270 KB), and the release workflow's check step now fails if zbic is missing from the bundled Python.

The release app's Python lacked zbic, so a game with system 22.0.0+ modules
stopped with 'ZBIC (zstd) segments need the zbic package'. zbic is now pinned
in the bundle, checked by check_bundle.sh, part of the launcher's Python probe
and venv install, and a failed build with this message gets a failure row with
an install button (Swift and Qt, English, Chinese, Swedish).
@v0lumehi v0lumehi added bug Something isn't working build Building a game fails launcher The NX2Apple launcher app labels Oct 30, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation windows Windows (the Qt front end) ci Workflows and repository tooling labels Oct 30, 2026
@v0lumehi
v0lumehi merged commit ec093eb into main Oct 30, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/bundle-zbic branch October 30, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build Building a game fails ci Workflows and repository tooling documentation Improvements or additions to documentation launcher The NX2Apple launcher app windows Windows (the Qt front end)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zbic package missing

1 participant