SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 93 forks source link

Webcord crashes at the installation on Windows 11 #476

Open ghost opened 10 months ago

ghost commented 10 months ago

Acknowledgements

Operating System / Platform

🪟️ Windows

Operating system architecture

x64

Electron version

The latest which is used by Webcord

Application version

v.4.4.0 up to v4.5.0

Bug description

Webcord crashes on installation without finishing it

Additional context

No response

SpacingBat3 commented 10 months ago

TL;DR: Squirrel sucks.

This was discussed somewhere before. And in reality it doesn't crash, it just doesn't have any installation logic that Squirrel expects for it to have. And no, I don't know if I'll be handling it any time soon, I'm strongly against bundling the large chunk of the code for installation logic that's pretty much useless in other bundles than Squirrel or platforms. So most likely I'll ditch Squirrel for NSIS installer if I'll do ones as part of ReForged (or someone will do a high-quality maker before, either be it official or unofficial ones).

SpacingBat3 commented 10 months ago

And in general WebCord should be installed automatically by Squirrel to %appdata%.

SpacingBat3 commented 10 months ago

Eventually, I could dig for some hook in Forge, maybe like preMake, that runs on packaged app (i.e. WebCord's transpiled code + Electron binary) and would either add or remove the Squirrel logic from the code based whenever currently Squirrel is being built or not, but this kind of hook should be run always before making any kind of distributable, so it can prepare the package correctly even when making different distributables.