Skip to content

Tests: adapt upstream's unsigned-IPA tests to the fork's slim default - #137

Merged
LNPANDY merged 1 commit into
mainfrom
ipa-unsigned-patcher
Oct 28, 2026
Merged

LNPANDY merged 1 commit into
mainfrom
ipa-unsigned-patcher

Conversation

@LNPANDY

@LNPANDY LNPANDY commented Oct 28, 2026

Copy link
Copy Markdown
Owner

The last red check on the synced tree. dm/ios/tests/test_ipa_unsigned.py (new from upstream) asserts upstream's packing default; the fork's is the slim IPA with romfs.id, and DM_FULL_ROMFS=1 packs the game files. The three assertions now start from the fork's default, the mapping rules are still covered, and the change is a registered patcher so the next sync keeps it.

…, as a patcher

The sync brought dm/ios/tests/test_ipa_unsigned.py, which asserts upstream's
default: game files and DLC packed into the package. The fork's default is
the slim package (the app reads Documents/games/<id>/, with romfs.id for the
identity check) and DM_FULL_ROMFS=1 packs them — the tests now start from
that default, still checking the mapping rules. Registered as a patcher so
the next sync keeps the adaptation.
@LNPANDY
LNPANDY merged commit b8a2af7 into main Oct 28, 2026
8 checks passed
@LNPANDY
LNPANDY deleted the ipa-unsigned-patcher branch October 28, 2026 14:36
v0lumehi added a commit to v0lumehi/NX2Apple that referenced this pull request Oct 28, 2026
, LNPANDY#137, LNPANDY#138)

The pin is the one main took in LNPANDY#130. Every patch is re-derived from the diff between that commit's tree and main's vendored tree, one per logical change, 19 patches (was 22).

Dropped, because upstream has it at the pin:
- ios-entitlements: build_ipa.sh has the ad-hoc entitlement block (32ae3b1); the fork's ENTITLEMENTS.md moves to fork-docs.
- nsp-exfat-appledouble: the rmtree hook and the AppleDouble skip are upstream (a0b8bdb); main's remaining difference was Python 3.9 compatibility, below the script's 3.12 floor.
- nsp-early-checks: the iOS SDK, Rosetta and glslang checks are upstream (c464cb2); the fork's duplicates (check_glslang, a second Rosetta check) go.
- nro-code-start: patch_nso.py has code_start (3e77816).
- hle-time-adjustable-clock: hle_time.c has it (4d2dc7d).

Carried from main's newer knowledge: the unsigned-IPA test adaptation (LNPANDY#137) joins ios-slim-ipa; the DOTNET_ROOT check and the pruning of intermediate extractions, which the old series did not carry, are patches of their own; romfsarc takes main's handle-shift fix in hle_fs.c.

patches.py: apply, bump and check regenerate docs/agents/game-patches.md and symptoms.md on the patched tree (upstream's test_docs.py requires them to equal their tools' output), and check/export keep patches away from them. Tests for it. The vendored tree differs from main's only by what is retired (sync_upstream.py and its test, game.fork.tsv, the dropped duplicates) and by the stamp patch.
v0lumehi added a commit to v0lumehi/NX2Apple that referenced this pull request Oct 28, 2026
, LNPANDY#137, LNPANDY#138)

The pin is the one main took in LNPANDY#130. Every patch is re-derived from the diff between that commit's tree and main's vendored tree, one per logical change, 19 patches (was 22).

Dropped, because upstream has it at the pin:
- ios-entitlements: build_ipa.sh has the ad-hoc entitlement block (32ae3b1); the fork's ENTITLEMENTS.md moves to fork-docs.
- nsp-exfat-appledouble: the rmtree hook and the AppleDouble skip are upstream (a0b8bdb); main's remaining difference was Python 3.9 compatibility, below the script's 3.12 floor.
- nsp-early-checks: the iOS SDK, Rosetta and glslang checks are upstream (c464cb2); the fork's duplicates (check_glslang, a second Rosetta check) go.
- nro-code-start: patch_nso.py has code_start (3e77816).
- hle-time-adjustable-clock: hle_time.c has it (4d2dc7d).

Carried from main's newer knowledge: the unsigned-IPA test adaptation (LNPANDY#137) joins ios-slim-ipa; the DOTNET_ROOT check and the pruning of intermediate extractions, which the old series did not carry, are patches of their own; romfsarc takes main's handle-shift fix in hle_fs.c.

patches.py: apply, bump and check regenerate docs/agents/game-patches.md and symptoms.md on the patched tree (upstream's test_docs.py requires them to equal their tools' output), and check/export keep patches away from them. Tests for it. The vendored tree differs from main's only by what is retired (sync_upstream.py and its test, game.fork.tsv, the dropped duplicates) and by the stamp patch.
lucaszhongsj pushed a commit to lucaszhongsj/nxnative that referenced this pull request Nov 19, 2026
… data)

Maps the RomFS and add-on content into the IPA only with DM_FULL_ROMFS; the app reads them from Documents/games/<id>/.

The unsigned-IPA tests (test_ipa_unsigned.py, test_profile_pack.py) start from the slim default and check DM_FULL_ROMFS=1 for the packed form (LNPANDY/NX2Apple#137).

Upstream-Status: fork-only (upstream has the opt-in DM_COPY_ROMFS=NO since 32ae3b1; the fork's slim default differs)
Reason: Default slim IPA: the RomFS and aoc/ stay out unless DM_FULL_ROMFS=1 (a full package of a large game is many GB and iOS refuses it). Upstream took the opt-out DM_COPY_ROMFS=NO and kept the full package as its default
Issue: LNPANDY/NX2Apple#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant