A new, unique injection method via replacing updater
require path (Windows only).
GIEx1 relies on Discord's new updater API (referred to as v2 in this document). v2 uses a native Rust library which the client (code within app.asar
) require
's. By replacing this, you can get code execution within the app.asar
. What this project does:
- Make a directory with the original name (
updater
) - Move the original native library within (
updater.node
moves into theupdater
dir) - Make an
index.js
file with our custom code, which:- Makes a class extending the native library's
- Hooks into functions to:
- Forcing update endpoint to have mods (GooseMod as an example) injected
- Rehook GIEx1 into any new updates
Installation is similar to the info about what the code does above. Simple steps:
- Download / clone this repo
- Rename
src
toupdater
- Copy your
updater.node
from your Discord install (like for stable,%localappdata%\Discord\app-1.X.Y\
) into the newupdater
directory - Remove the
updater.node
from your Discord install directory - Copy your
updater
directory into your Discord install directory - Restart Discord via system tray