Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

lillithkt
Copy link
Contributor

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

@lillithkt
Copy link
Contributor Author

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")
Copy link
Member

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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want:

Suggested change
require("path").join(__dirname, "../_app.asar")
require("path").join(__dirname, "..", "_app.asar")

break;

case "darwin":
patch(join(dirname(process.execPath), "../", "Resources"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
patch(join(dirname(process.execPath), "../", "Resources"));
patch(join(dirname(process.execPath), "..", "Resources"));

@xyzeva xyzeva changed the title Persistence Helper Persistence Helper and matching minified rspack names Dec 17, 2023
@NotNite
Copy link
Member

NotNite commented Oct 3, 2024

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.

@NotNite NotNite closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants