chase / awrit

A full graphical web browser for Kitty terminal with mouse and keyboard support
Other
431 stars 14 forks source link

How do I run on macOS? #17

Closed LakshK98 closed 1 year ago

LakshK98 commented 1 year ago

I followed all steps and cmake --build build ran successfully and generated awrit.app in build/awrit/Release In a kitty terminal I ran sudo open awrit.app It exits immediately with no output/error.

chase commented 1 year ago

My apologies, I should have included it in the README 😅 I'll leave this issue open until I update the README.

You can run it using: ./build/awrit/Release/awrit.app/Contents/MacOS/awrit
You should notice this is the same path as the final linking step from a build:

[1/1] Linking CXX executable awrit/Release/awrit.app/Contents/MacOS/awrit

You also shouldn't run it with sudo, that's not necessary and might cause things not to work correctly.


As a side note: It's bundled as an app because on macOS, Chromium Embedded Framework requires this specific directory structure by default. I'll change the structure to be simpler when I have more time.

chase commented 1 year ago

Ideally, I'll have it built and structured as: bin/awrit share/awrit/Resources

chase commented 1 year ago

@LakshK98 I added the ability to install and run it in a much simpler way.

I also attempted to make the README more clear, but feel free to open another issue if you run into problems.