Madeira README

项目的 README,来自 github.com/willfaust/Madeira。合并为一个 markdown 文件:README.md。

Madeira — Bringing PC gaming to your iPhone.

Join the Madeira Discord     Latest release     License: GPL-3.0-or-later

Madeira runs Windows PC games on an iPhone, with no jailbreak. Games run as they are, unmodified, inside a single iOS app.

[!NOTE] Madeira is an active research project. Many games start and some play well, but performance and compatibility vary from game to game, and things change quickly. Expect rough edges.

How it works

Layer What it does
FEX-Emu Translates the game's x86 and x86-64 code to ARM64 as it runs.
Wine 11.4 Provides Windows. It is built for ARM64EC, so Wine itself runs natively and only the game's own code is translated. 32-bit games run through WoW64.
DXMT Draws Direct3D 9, 10 and 11 with Metal.
madeira-d3d12 Madeira's own Direct3D 12 implementation on Metal, converting DXIL shaders at run time with Apple's Metal Shader Converter.

iOS apps cannot start other programs, so everything runs in one process: even Wine's server runs as a thread instead of a separate program.

Features

Requirements

Because JIT needs a debugger, Madeira cannot be offered on the App Store.

Installing

  1. Download the IPA from the latest release.
  2. Sideload it with your own Apple ID using SideStore, AltStore, Sideloadly, Plume or a similar tool.
  3. Open Madeira and enable JIT. Automatic mode uses StikDebug when installed, otherwise it guides you through the built-in setup; see JIT setup.
  4. In Settings, check that JIT and Memory+ both show a green check: Madeira then says Ready to play.
  5. Add a game. Steam games come from Sign in to Steam in the library. For a Windows game you already have, copy its whole folder into Madeira › wine › drive_c with the Files app, then tap + in the library and choose its .exe, .bat or .cmd; see Adding games.

Some 64-bit games need Microsoft's Visual C++ runtime, which is not included (see Licensing).

Building from source

git clone --recurse-submodules https://github.com/willfaust/Madeira.git

FEX, wine, dxmt and madeira-dock are submodules that point at Madeira's own forks; upstream checkouts will not build here. The build has several parts (the Wine unix libraries, the ARM64EC Windows modules, FEX, DXMT and the app) and some inputs that are not in the repository, such as the toolchains. docs/BUILDING.md walks through all of it. git clone --recurse-submodules cd Madeira ./tools/build-ipa.sh # produces dist/Madeira.ipa

See BUILDING.md for prerequisites, timing, and re-run notes.

Note that FEX, wine and research/dxmt are submodules pointing at forks containing the iOS work; upstream clones will not build here.

Repository layout

Path Contents
app/ The iOS app: SwiftUI front end, Wine bridge and bundled resources
wine/, FEX/, dxmt/, madeira-dock/ Madeira's forks and the Steam client launcher (submodules)
madeira-d3d12/ The native Direct3D 12 runtime
build/ Build scripts and iOS-side sources, one folder per component
tests/ Host checks and x86, x86-64 and DXMT test programs
tools/ Helper scripts
docs/ Documentation
research/ Experiments that are not part of the app

Documentation

Topic Document
Building from a clean checkout docs/BUILDING.md
StikDebug and built-in JIT setup docs/JIT.md
The game library docs/LIBRARY.md
Steam sign-in, library and downloads docs/STEAM_SIGNIN.md, docs/STEAM_LIBRARY.md
Steam Cloud saves docs/STEAM_CLOUD.md
Madeira Dock (the Steam client) docs/MADEIRA_DOCK.md
32-bit games (WoW64) docs/WOW64.md
Controllers and touch controls docs/CONTROLLERS.md
Keyboard, mouse and trackpad docs/KEYBOARD_MOUSE.md
Audio and video docs/MEDIA.md
Licensing in detail docs/LICENSING.md

Licensing

Madeira is licensed under GPL-3.0-or-later (LICENSE) with the Madeira Converter Exception (LICENSE-EXCEPTION.md), an additional permission that allows it to work with Apple's Metal Shader Converter.

The projects it builds on keep their own licenses upstream, but Madeira's forks are not all licensed the same way as their upstreams:

Component License
Wine fork LGPL-2.1-or-later, like upstream Wine
FEX-Emu fork, DXMT fork Upstream code stays MIT; Madeira's changes are GPL-3.0-or-later with the exception
rpmalloc fork Upstream code stays 0BSD; Madeira's changes are GPL-3.0-or-later with the exception
Madeira Dock GPL-3.0-or-later with the exception

Anything obtained earlier under a permissive license stays available under it. Per-component details, including GnuTLS, Nettle, GMP, FFmpeg and LLVM, are in THIRD-PARTY-NOTICES.md; the license texts are in LICENSES/.

Microsoft's Visual C++ runtime DLLs are not distributed with Madeira. To build with them, supply them yourself as described in tools/fetch-vcruntime.md.

Contributing

Contributions are welcome under GPL-3.0-or-later; see CONTRIBUTING.md.

Madeira's forks contain a lot of AI-assisted work. FEX-Emu does not accept AI-generated code, so please do not send changes from these forks upstream to FEX-Emu, and check each upstream project's contribution policy before proposing anything to it.

Credits

Madeira is built on Wine, FEX-Emu, DXMT by Feifan He (3Shain) with the Direct3D 9 frontend by David Acevedo (dacevedo12), rpmalloc by Mattias Jansson, StikDebug, StikJIT and idevice for enabling JIT. Thank you to everyone who contributes to them.

Join the community on Discord

Madeira (willfaust/Madeira)

正在搜索数据库…

这是什么?Madeira 通过组合 Wine(ARM64EC)、FEX-Emu(x86-64 到 ARM64 的转译)和 DXMT(D3D11 到 Metal),在未越狱的 iPhone 上运行 x86-64 Windows PC 游戏,全部在 iOS 上单个 Mach 进程内运行。
这是越狱工具,还是可以用正常方式安装的东西?它不是越狱。它运行在原装、未越狱的 iPhone 上,但必须侧载安装,而不能从 App Store 安装,因为它需要附加调试器才能进行 JIT。
我怎么构建并把它装到我的 iPhone 上?用 build//build.sh 构建原生的 Wine/FEX/DXMT 组件,然后用 xcodebuild 构建 iOS 应用本身,再把产物侧载到你的手机上。
运行它之前我需要准备什么?一台未越狱的 iPhone(开发用的是 A15 / iPhone 13 Pro)、一个能在启动时附加的 JIT 调试器(如 StikDebug),以及一个用于签名的 Apple ID——免费账号也可以,但必须每周重新构建。
目前哪些游戏真的能玩?Thumper 和 ULTRAKILL 可以玩;Marvel Cosmic Invasion 能进入游戏,但出现过原因不明的崩溃,操控也不稳定;其他游戏只能以低帧率进入游戏,而且项目明确属于研究级别,每个游戏各有各的怪癖。
它在任何 iPhone 上都能用吗?它只面向未越狱的 iPhone;开发专门是在 A15 芯片(iPhone 13 Pro)上进行的,而且没有 Android、Mac 或桌面版构建。
为什么这个应用每周都要重新构建?它用免费的 Apple ID 签名,而免费描述文件会在 7 天后过期,迫使你反复重建和重装。应用的容器(存档、Wine 前缀)在重装后仍然保留。
我直接克隆官方的 Wine、FEX-Emu 或 DXMT 仓库就能构建吗?不能,构建使用的子模块指向 FEX、Wine 和 dxmt 的 Madeira 专用分支,其中包含 iOS 专属的修改,所以单纯的上游仓库构建不了这个项目。
我能把这个分支里 AI 生成的修复提交回 FEX-Emu 吗?不能。这里的分支包含大量 AI 辅助完成的工作,但 FEX-Emu 自己的贡献政策禁止 AI 生成的代码,所以这类改动不应该提交到上游。
构建所需的一切都包含在仓库里吗?不是,Microsoft Visual C++ 运行时 DLL 不随仓库分发,必须在构建前单独获取,详见 tools/fetch-vcruntime.md。
作者
willfaust
大小
250.7 MB
星标
3.2K
时长
8个月
提交 · 90 天