[Feature]Edit app.asar in a way such that BetterDiscord is installed with every Discord update!
Before Requesting
- [X] I found no existing issue matching my feature request
Describe the feature you'd like!
And also have the ability to rollback Discord updates and stop forced updates!
Anything else?
I think app.asar has the updator logic but it may also be in the Discord executable so we may need Ghidra for that.
and why there are always 13 updates instead of a random number
but when i edit app.asar discord refuses to start how to fix that
You can bypass any host updates by adding the following rule to discord/settings.json
{
"SKIP_HOST_UPDATE": true
}
An example of which can be seen in this screenshot.
I do not believe this will resolve the issue of Discord patching out BetterDiscord on host updates, as occasionally, the app.asar file in question also gets overwritten by Discord host updates.
Additionally, I can highly reccomend OpenAsar which allows you to skip update checks on starup, which should also allow you to bypass host updates.
Currently, I am aware of the BetterDiscord installer package being rewritten in wails in the hopes of adding more control of BetterDiscord injection being a bit more permanent.
I hope these workarounds are helpful to you until a solution is found.
저건 남에게나 도둑넘이지..
I do not believe this will resolve the issue of Discord patching out BetterDiscord on host updates, as occasionally, the
app.asarfile in question also gets overwritten by Discord host updates.
Couldn't you just bundle a file that checks if the discord app is updated, than patches the asar?
I do not believe this will resolve the issue of Discord patching out BetterDiscord on host updates, as occasionally, the
app.asarfile in question also gets overwritten by Discord host updates.Couldn't you just bundle a file that checks if the discord app is updated, than patches the asar?
Technically yes, but you would have to have a subprocess that checks when Discord's Sr has changed to then kill it, then reinstall better Discord and then start Discord again. Due to better Discord needing an entire app restart in order to load correctly, this experience will be janky to the user to say the least. And I do believe that a lot of users will complain that their Discord is not starting correctly or starting very weirdly if this is to be implemented. Worse yet, I do believe some might complain that their Discord might be infected with malware seeing as how better Discord already has a bit of a tarnished reputation for some infected binaries being spread on the internet and people not checking where they got their binaries from, but just blaming the name of the app.
Either way, I think the manager that is upcoming is a better idea than just having a thing that kills Discord after it's already started. Then restart Discord with BD injected as if nothing happened.
Duplicate of #1231