-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistence Helper and matching minified rspack names #20
Conversation
Accidentally merged something, This pr now includes the \i shortcut in patch finds, as I overlooked adding them there |
writeFileSync( | ||
join(ourApp, "injector.js"), | ||
`require(${JSON.stringify( | ||
join(__dirname, "../", "../", "injector") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont need the ../
here, ..
would work.
`require(${JSON.stringify( | ||
join(__dirname, "../", "../", "injector") | ||
)}).inject( | ||
require("path").join(__dirname, "../_app.asar") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want:
require("path").join(__dirname, "../_app.asar") | |
require("path").join(__dirname, "..", "_app.asar") |
break; | ||
|
||
case "darwin": | ||
patch(join(dirname(process.execPath), "../", "Resources")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patch(join(dirname(process.execPath), "../", "Resources")); | |
patch(join(dirname(process.execPath), "..", "Resources")); |
Closing for multiple reasons: stale, basing off of Vencord's is a legal grey area, and we have a WIP persistence system in moonlight with 1.1.0. |
Automatically re-patches whenever discord updates!
Tested on windows (this is based off Vencord's win32 version) and macos, and i am fairly confident this will work on linux! I will test on linux later tonight