Skip to content

feat(windows): add the Windows build for ARM64 and x64 - #2

Merged
oenderg merged 187 commits into
mainfrom
port/windows
Nov 13, 2026
Merged

oenderg merged 187 commits into
mainfrom
port/windows

Conversation

@oenderg

@oenderg oenderg commented Nov 13, 2026

Copy link
Copy Markdown
Owner

What

Adds the Windows build (ARM64 and x64) to AltVerZ-Darwin, ported from Reflourished-Darwin, and merges Reflourished's main into this fork (iOS multi-touch fix, cross trimming).

How it works

  • Everything Windows-side is driven by the profile in data/profiles/altverz.json: app name, package, OBB, CDN archive, installer identity, update feed, smoke test. PROFILE defaults to altverz.
  • ARM64 loads the game's own ARM64 libraries directly. x64 translates them with the pinned ScarletNX (f5c2fa84 plus scarletnx.patch) on first start and caches the result.
  • Mod differences handled: libSnowie, zlib parts, ETC1 colour plus alpha plane pointer art (format 0x93), and powerups: false hides the power-up keys in Settings.
  • build.yml now builds Apple and Windows and publishes from one job. publish=false makes a build-only run.
  • README, RELEASING, TESTING, MOD-PROFILES and docs/windows-shipping.md cover Windows.

Fixes found on the way

  • The x64 app-object finder matched blocks of repeated values on the larger x64 heap and rescanned every second. It now requires the exact start size, 8-byte alignment, skips its own buffer, and caps re-find rounds.
  • Added the missing x86-64 guest_call3.
  • Smoke test parameter renamed to -ExeFilter (PowerShell variable names are case-insensitive).

Tested

  • Windows 11 on ARM VM: both architectures reach the title and Welcome screens and play the intro level (ARM64 about 111 fps, x64 about 82 fps under Prism), no faults.
  • CI on this branch, build-only: Windows (setup, zips, smoke test on x64 and ARM64 runners) and Apple all green.
  • Mac build of the merged branch boots to the title at 120 fps.

Not covered

  • No physical Windows PC yet, only the VM.
  • The Windows files are unsigned, so SmartScreen and Smart App Control will block them. The README says so.
  • Nothing is published. The build-inputs draft release holds the CDN archive and the ANGLE zips for CI.

oenderg and others added 30 commits October 26, 2026 12:32
Installed with TrollStore, the app was killed the moment it started on an
iPhone 12 with iOS 16.3.1: no log, no folder in Files, and no crash report in
Analytics Data. TrollStore grants every entitlement an app asks for, and its
README says that on iOS 15+ with an A12 or later dynamic-codesigning,
com.apple.private.cs.debugger and com.apple.private.skip-library-validation
cannot be had without a PPL bypass, so apps signed with them crash on launch.
Our entitlements asked for dynamic-codesigning, on the belief that it was
ignored where it was not honoured.

The game runs from the converted libraries and makes no executable memory,
and the JIT fallback gets it through get-task-allow, so nothing loses
anything. The iOS build now refuses an entitlements file that names any of
the three, and the AltStore source no longer lists it.
The Mac app would not open on macOS 15 ("cannot be opened with this version of
macOS") although its Info.plist asked for 12.0. Nothing set a deployment target:
the host was compiled with a bare clang and the converted libraries and the shim
with "-target arm64-apple-macos", and clang then takes the build machine's own
version. CI builds on macos-26, so every Mach-O in the app required macOS 26.

Pin one minimum everywhere: MACOS_TARGET (arm64-apple-macos14.0) in the converter,
used by the conversion, the shim build and the shim's libSystem probe; MACOS_MIN
(14.0) in build-macos-app.sh for the host, the settings window and
LSMinimumSystemVersion. The minimum is 14, not 12, because the SwiftUI settings
window was already built for 14 (@observable, toolbar(removing:)), so the app
never could run on 12 or 13; README and the release footer now say so.

So it cannot drift again, the Mac build now fails if any Mach-O in the bundle
asks for a newer macOS than the minimum, and an unguarded call to a newer API in
the host is a compile error.
The game view never turned multi-touch on, so a tap made while another finger was down never arrived, and each touch event numbered its fingers from 1 again, so a second finger would have taken over the first. Each finger now keeps its own id (2 to 7; 1 stays the shortcuts') from press to let-go, and the touch queue keeps each finger's previous position.
The Windows names, OBB, CDN host and path, package and mod library now come from the
profile's generated header, and build-win.sh takes PROFILE (default altverz).
… block that will not hold still

The Windows finder took any plausible size pair, so on x86-64's larger heap it settled on
a block of repeated 2x1 values and searched again every second. It now looks for the size
it was given, skips its own scan buffer, and stops after a few failed rounds.
…s from the profile

The zip and installer names, the setup's identity (its own AppId), the data folders, the update
feed writer, the ANGLE fetch, the smoke test's program and OBB folder, check-repo.sh and the
exe icon all come from the profile now, so AltVerZ ships as itself.
…their smoke test

The Windows ARM64 programs cross-build on a Mac, the x64 programs, the setup and the zips on
Windows in MSYS2 with the pinned ScarletNX, and the smoke test starts each zip twice. The CDN
archive comes from the build-inputs draft, since the mod's host no longer serves it.
…BB too

The art loader reads AltVerZ's zlib parts and ETC1 atlases with an alpha plane, as the Mac's does;
304 pictures load in about 170 ms on ARM64.
@oenderg
oenderg merged commit 70c5edb into main Nov 13, 2026
8 checks passed
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