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.nodemoves into theupdaterdir) - Make an
index.jsfile 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
srctoupdater - Copy your
updater.nodefrom your Discord install (like for stable,%localappdata%\Discord\app-1.X.Y\) into the newupdaterdirectory - Remove the
updater.nodefrom your Discord install directory - Copy your
updaterdirectory into your Discord install directory - Restart Discord via system tray