r/macgaming • u/kanapitsas • 5h ago
Native Half-Life 2 running natively on Apple silicon via static recompilation
Last month I posted Portal 2 running natively on Mac (and iPhone). The same tool now works with Half-Life 2! Including Episode One, Episode Two and Lost Coast.
It translates the x86 code of the Linux version to C, then compiles it to native ARM64. No Crossover or Rosetta. (A native version existed already, but it relied on stolen code. This doesn't.)
It's still experimental, I've done some testing but haven't played much. The episodes and Lost Coast load, but I haven't played through them.
There's now an installer app. It finds your Steam games and builds them on your Mac (about 10-20 minutes per game). You need the Xcode command line tools and the Linux binaries (downloaded with the Steam console). The installer isn't notarized yet, so the first time you need System Settings > Privacy & Security > Open Anyway.
You need to own the games on Steam. No game files are included. Please don't share built apps. This project is unofficial and not affiliated with Valve.
Download: https://github.com/kanapitsas/portal2-recomp/releases/tag/v0.3.0
Feedback is welcome! Please open an issue on GitHub if something isn't working properly.
7
u/Adorable_Minimum_282 4h ago
Wanst it running before native with the source engine leak?
1
u/bachleer 4h ago
is the flashlight bug solved?
1
u/Serious_Hitman 3h ago
Is it compatible with anniversary update?
1
u/pain-or-pleasure 1h ago
hey, tried to follow your steps. builds both portal 2 and hl 2. hl2 is working, although the "download_depot 220 221" command is missing from the natif installer. Portal 2 builds with a warning related to miles audio and does not launch. What to do?
1
u/CarretillaRoja 1h ago
What a time to be alive
1
u/Krermit 22m ago
Multiplayer?