yonatan-mitmit / onium

Extension injector into Electron apps
MIT License
21 stars 3 forks source link

Mac OS installation #9

Closed Shir-AH closed 2 years ago

Shir-AH commented 2 years ago

Hi and thank you for you work! I've been trying to install the Onium patch on my mac os, and received an error message as follows: Cannot write to /Applications/Slack.app/Contents/Resources. Run elevated. Any idea on how to solve this? Thanks

cr-mitmit commented 2 years ago

run it with sudo first, as in sudo python -m onium Let me know if you have any other problem

Shir-AH commented 2 years ago

Thank you for your help and quick reply, this does seem to solve some issues, but others were created... The cli claims to be finished, but Slack is crashing and unable to open ("Slack quit unexpectedly"). Any help? Thank you!

cr-mitmit commented 2 years ago

In order to understand what's going on, I need you to open a terminal and try to run slack from the command line. Usually as /Applications/Slack.app/Contents/MacOS/Slack in a terminal window

cr-mitmit commented 2 years ago

Also, which computer are you using and which os version?

Shir-AH commented 2 years ago

It gives the same result when running from the terminal, outputing: [88479:0112/170646.019377:FATAL:asar_util.cc(164)] Integrity check failed for asar archive (7471c5a0afdad7da16c4f38b70de292d135a98ef1914e6458c9fc01209e643df vs 311357c24568eaa09ca00e2468691d66a86d0f9bca47a5d32aae7d00b8cfe891) [1] 88479 trace trap /Applications/Slack.app/Contents/MacOS/Slack

I'm using a MacBook Pro (13-inch, 2020), with macOS Big Sur 11.6.2 (20G314).

Thank you!

cr-mitmit commented 2 years ago

Thanks. I fixed that issue on ARM (Apple Silicone) as in the past it wasn't needed on Mac based intel. Seems like they force it now.

Can you replace onium.py file with this one linked below and let me know if it fixes the problem?

cr-mitmit commented 2 years ago

Pushed the commit that add resigning on Intel based mac too. Should close this issue. You're welcome to verify if it works for you

Shir-AH commented 2 years ago

Working, brilliant :) Thank you very much (sorry for the long response time).

cr-mitmit commented 2 years ago

Cool. Help spread the word :)