lucannez64/darling-lol
Sobre
Patches experimentais de runtime do Darling e ferramentas para testar o cliente de League do macOS no Linux
Outros projetosCrescimento medido de estrelas
- em 24 h
- +5
- em 7 dias
- +22
- em 15 dias
- +57
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
Darling-LoL
Experimental macOS League of Legends client on x86-64 Linux through Darling
[!IMPORTANT]
Critical Announcement
1. Maintenance: Built mainly as a technical challenge, because everyone kept telling me it was impossible. I do not have the time to maintain it fully. Apart from issues that block you completely, I will only review and merge pull requests.
2. Bans: You will probably get permabanned. You alone are responsible for launching the game in a modified environment (Darling).
- DO NOT cheat.
- DO NOT play ranked.
- DO NOT use your main account.
Note: Currently triggering 3-Day Suspensions ("UNSUPPORTED_THIRD_PARTY_TOOLS"). DON'T USE IT RN.
3. Continuity: If discontinued, patches remain available under their upstream licenses, and the original integration tooling under GPL-3.0.
4. To Riot: A lot of players want to play your game on Linux. If you want to fix this, make LoL Next compatible natively or via a layer like Proton (Epic did it with Easy Anti-Cheat, kernel anticheat included). Contact:
[email protected](especially for an official or supported version of League on Linux).Open to work: part-time remote as an employee, or full-time remote as a freelancer for a mission.
Status
This is a development snapshot, not a finished launcher. The Riot and League clients launch, and manually played ARAM games have run. Graphics, audio, input, startup crashes and memory reclamation have received compatibility fixes.
- Performance: On a Ryzen 5 5500 / RX 6600, ARAM averages about 118–135 FPS (slowest 10-second stretches around 106–119; higher figures with Hyprland's direct scanout off). Fights were 70–80 FPS before the 2026-10-13/14 work, versus 170–190 on Windows.
- Not yet measured: the effect of the memory changes on client RAM.
- Not validated: a fresh checkout on another machine, end to end.
- Details: docs/STATUS.md (manual ARAM run and current status) and docs/COMPATIBILITY.md (real machines and measured frame times).
darling-lol --doctoranddarling-lol --perf(available through the Nix launcher) produce the data for a new row. On native and manual installs, run the equivalent commandspython3 tools/doctor.pyandpython3 tools/perf-baseline.py.
What's included
- Pinned upstream revisions and patches for 30 Darling components (Metal/Indium, AppKit, QuartzCore, CoreAudio, kernel shim, darlingserver).
- Event-poll presentation and GPU sync fixes, floating-point-safe GL resolvers, multi-window presentation, nullable LaunchServices error handling.
- Reusable server receive buffers and Darwin allocator hints translated to Linux lazy reclamation.
- Build/install/launch wrappers, atomic incremental installers and standalone regression probes.
Not included: game files, Riot installers, account databases, tokens, prefixes, captures or compiled binaries. Install the game manually through Riot. The normal launcher does not patch the client, enable an Electron inspector, or start UI automation helpers. It clears DYLD_INSERT_LIBRARIES and keeps Darling runtime overrides; this is not a claim of approval by Riot.
Requirements
- OS: x86-64 Linux 5.14+, X11 session or Xwayland (optional opt-in experimental native Wayland via
RCLOL_WAYLAND=gameor1, see setup). - GPU: Working hardware Vulkan/OpenGL driver. AMD RADV and NVIDIA (proprietary and open modules) have been exercised; others are not validated. See NVIDIA. Hybrid laptops usually render on the iGPU unless started with PRIME offload: see hybrid graphics.
- Tools: Git + Git LFS (2.13+), Bash, curl, unzip, CMake 3.20+, Make, Clang/LLD, LLVM dev files (16+; 22/23 is what the Metal overlays are tested with), C/C++ compiler, Python 3.10+. Node.js only for offline JavaScript checks.
- Libs: X11/XCB/SHM development files.
- Disk: at least 50 GiB in total for Darling sources/build, Git LFS assets and the game. Space already used by a previous install (build tree,
~/.darlingprefix and system runtime) counts toward this minimum only when it is on the same filesystem as the checkout. Keep at least 5 GiB free on that filesystem for build and staging files.
scripts/build.sh and scripts/install-runtime.sh run scripts/preflight.py first and stop on unsupported versions (RCLOL_SKIP_PREFLIGHT=1 bypasses it). For other distributions, see the dependency list in the pinned Darling source; tools/env-check.sh is a starting check (package names may need adapting).
Automated Installation
Installs dependencies, configures the build environment and compiles Darling-LoL. Requires at least 50 GiB of disk space in total; a previous build/prefix already on disk counts toward it only when it is on the same filesystem as the checkout.
Supported distributions: Fedora 44+, Arch Linux (including Artix), Debian 14+, Ubuntu 26.04+. Hosts outside this list (for example Ubuntu 24.04 and its derivatives) can still install through a Fedora Toolbox container with --toolbox.
git clone https://github.com/lucannez64/darling-lol
cd darling-lol
bash scripts/install-native.sh
Options:
--toolbox,-t: Run the installation inside a Fedora Toolbx container, keeping build dependencies off the host. Uses Toolbx (containers/toolbox) andpodman, and automatically falls back to Distrobox (distroboxandpodman; Podman is required, Docker-backed Distrobox is not supported) when Toolbx is unavailable (such as on openSUSE). The container is named byDARLING_LOL_TOOLBOX_NAME(defaultdarling-lol). See troubleshooting.--verbose,-v: Full command output.--yes,-y: Skip confirmations (needed when not run from a terminal). On Arch, a native install runs a fullpacman -Syuand asks first unless this is given.--region CODE: Riot region (EUW,EUNE,NA,BR,KR,JP,OCE,LAN,LAS,TR,RU,SG2). Without it, an interactive install asks; with--yesor without a terminal it is the region of an explicit--locale, elseEUW.--locale CODE: Riot Client language for new installs, for examplept_BR. Without it, an interactive install asks and suggests the system locale; with--yesor without a terminal it isen_GB. A prefix that already ran the client keeps its saved language unlessRCLOL_LOCALEis exported at launch.
Options can be combined: bash scripts/install-native.sh --toolbox --verbose
Build Instructions
Nix / Rootless Package (experimental)
Nix supplies the launcher and dependencies, not a prebuilt Darling or the game. First setup is interactive and builds into the writable per-user workspace.
nix run github:lucannez64/darling-lol#installer
nix run github:lucannez64/darling-lol#default -- --update
nix run github:lucannez64/darling-lol#default
nix run github:lucannez64/darling-lol#shell
From a local checkout:
nix run .#installer
nix run .#default
Limits: run updates only after manually closing the clients and shutting Darling down; a live prefix marker blocks a second launch; one workspace/namespace is supported at a time; do not delete build/nix-gcroots/ while in use. See Nix setup and operational limits.
Manual Build (Non-Nix)
Ensure no Riot/League session is running before installing the runtime.
git clone https://github.com/lucannez64/darling-lol.git
cd darling-lol
python3 -m venv build/venv
build/venv/bin/pip install -r requirements.txt
python3 scripts/configure.py --guest-user "$USER"
./scripts/build.sh
sudo cmake --install build/darling-src/build
./scripts/install-runtime.sh
Default layout: /usr/local/libexec/darling, ~/.darling and /Users/$USER inside the guest (use the real guest account name if different). Paths are rendered into ignored files under build/runtime/tools; don't run the tokenized tools/ templates directly. The install wrapper shuts Darling down before replacing per-user overrides and backs up relevant files. See setup details.
Launch & Usage
For native and manual builds, install the Riot Client (change euw to your region), then sign in and install League through Riot's own UI. For Nix, use the Nix launch instructions:
./scripts/installer.sh euw
Launch:
./scripts/run.sh
First installs and future Riot updates can still hit compatibility gaps (e.g. an accepted Install action failing native LaunchAgent registration and leaving the download idle). The archived inspector-based workaround is excluded from the manual workflow. The client window-visibility correction is part of the installed runtime (Darling's AppKit overlay), not a patch to Riot's binaries. See troubleshooting for the known limitation and the fixes already in the runtime.
Advanced launch options:
- Region/locale:
RCLOL_REGION=NA RCLOL_LOCALE=en_US ./scripts/run.sh(display follows$DISPLAY; legacy fallback is:1). - Recover stale client (client closed but
darlingserverstill running):RCLOL_RECOVER_STALE_CLIENT=1 ./scripts/run.sh. Stops only a windowless Riot/League/CEF tree at least 60 s old; preservesdarlingserver, launchd/mldr, sockets and.init.pid. Details. - Clean orphaned helpers (several
close-league-client-in-game.pywatchers):RCLOL_CLEAN_STALE_HELPERS=1 ./scripts/run.sh. Only removes orphaned helpers of this prefix. Details. - Client handling in-game:
RCLOL_CLIENT_IN_GAME_TRICKS=1 ./scripts/run.sh. Readslol-user-experiencefromLCULocalPreferences.yaml; closes the client UI whencloseLeagueClientDuringGameis true, and hides it when that value is false andpotatoModeEnabledis true. Missing or invalid values select no action. Low-level switchesRCLOL_CLOSE_CLIENT_IN_GAMEandRCLOL_HIDE_CLIENT_IN_GAMEremain available. Details. - League splash overlay:
RCLOL_HIDE_LEAGUE_SPLASH=1 ./scripts/run.sh. Polls every five seconds and unmaps only the borderless512x216override-redirectLeagueClient/LeagueClientwindow that can appear at random. Off by default; local window management only, never hides the game or managed client windows, and does not patch client binaries, CEF, anti-cheat or DRM. Standalone:./scripts/hide-league-splash-window.sh(--onceinspects without changes). Details.
These window-management helpers are opt-in, off by default, and do not patch client binaries.
Updating
Exit the game and both clients first.
Nix users: use nix run --refresh github:lucannez64/darling-lol#default -- --update when running through Nix. For an installed profile or system package, upgrade the package first, then run darling-lol --update.
Native, manual, and Toolbox builds:
git pull
./scripts/update.sh
For a Toolbox install, run these commands from the host. The updater detects the recorded container and runs the update inside it.
update.sh re-applies changed patches (reverting the earlier version of each, so other edits survive), rebuilds incrementally, reinstalls the base runtime and per-user overlays (including canonical prefix overlays), signs the prefix overlays and base SDK, and replaces any legacy shared platform identity. It refuses to run while a Riot or League process is open. Background steps log their output by default. Pass --verbose to stream all output to the terminal. If you maintain an additional or non-default prefix via DPREFIX, update that prefix as well with DPREFIX=/path/to/prefix sh scripts/install-runtime.sh. For single components, see incremental updates.
A built runtime can also be shipped without the toolchain via tools/runtime-package.py: see prebuilt runtime overlays.
Testing
Start with the standalone regression checks, then play a match manually: docs/TESTING.md. Do not attach a debugger, query client APIs, inject diagnostic hooks or automate client/game input. The project includes standalone compatibility probes and the opt-in host-side window-management helpers described above, but no client injection hooks, client API automation or input automation; the normal launcher enables none of them.
FPS counters, presentation requests and display refresh are different measurements. Record average and p99 frame times, scene, graphics settings, power state and focus. Game-process speed switches are in setup; the passive match sampler is mentioned in status.
Repository Layout
scripts/ portable entry points
upstream/manifest.json exact base revisions and patch ownership
patches/ current source changes, one patch per repository
tools/ runtime templates, installers, standalone probes
tests/ regression tests
research/ research notes
docs/ setup, testing, status, compliance, interoperability
.github/workflows/ CI
build/ local sources, outputs, rendered tools (ignored)
Legal & Compliance
This is an unofficial interoperability effort. It distributes source patches for Darling and original tooling, not the Riot client, game code, assets or accounts. The normal launcher does not patch the client, game, CEF or anti-cheat. Users obtain the client from Riot and are responsible for complying with Riot's terms; account restrictions are possible. See interoperability scope and compliance guidance (neither is legal advice).
Darling/upstream components keep their licenses (NOTICE.md). Original integration tooling is GPL-3.0; patches retain the licensing of their target files.
League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. This project is not affiliated with, endorsed by, or sponsored by Riot Games.
Donations: Support on Ko-Fi
Explore projetos relacionados
Carregando…