thisiscam / math-with-slack

Rendered math (MathJax) with Slack's desktop client
MIT License
306 stars 28 forks source link

math-with-slack integrity check error on windows #54

Open jasondlee88 opened 6 months ago

jasondlee88 commented 6 months ago

I am on slack 4.3.8.121 and after running math-with-slack binary get the error 'Integrity check failed for asar archive' and then afterwards, the slack won't launch

rychdau commented 6 months ago

On my Windows installation of Slack 4.38.121 I am having the same issue. When I run the binary it injects MathJax as expected, but then Slack fails to launch and, in my case, I had to reinstall desktop Slack again.

If there is a way to recover a log file from the binary I would be happy to share it here to help the issue get resolved (and thank you for the time you put into making this!)

sabaronett commented 5 months ago

Same issue

thisiscam commented 5 months ago

Hi all! I'm quite packed this month. I will look into this in one or two weeks (and also when I get an access to a windows machine). thanks!

thisiscam commented 3 months ago

Apologies on the delay! I looked into this and it appears like Electron has implemented a MacOS-like code integrity check for Windows since Jan: electron/pull/40504

I think it's theoretically possible to bypass this, similar to how it's done on MacOS. But, it will require admin access (same as code signing on MacOS requires root), and might also involve temporarily bypassing "Microsoft Defender SmartScreen".

Unfortunately, I don't regularly use a Windows machine and currently doesn't have much time to implement this. If anyone wants to take the lead, feel free to PR!

To be honest, all the tampering with code-signing of the Slack app is pretty hand-wavy. But, I just don't know if there's a better way --- even after all these years, still no official TeX support in Slack makes me sad.