Added headless build support

This commit is contained in:
Luxferre
2024-09-15 18:49:42 +03:00
parent 030dfdb956
commit 6a2076f473
5 changed files with 70 additions and 17 deletions
+6
View File
@@ -119,6 +119,12 @@ Then rerun the command from step 2.
**Note**: When testing the cross-compiled build under Wine, you must have Microsoft Edge WebView2 Runtime installed in order for the GUI to work at all. You can [download](https://developer.microsoft.com/en-us/microsoft-edge/webview2) this engine directly from the Microsoft website (select "Evergreen Standalone Installer") and install it into your Wine profile. Be sure to enable at least Windows 7 emulation in winecfg.
### Headless builds
In case you don't want to build the GUI, you can run `make headless` and `make win64-headless` depending on the platform. In this case, a binary will be built where you'll be required to point any JS-enabled Web browser of your choice to `http://127.0.0.1:60053` to see the chat window. This can be useful when building StreamGoose on more exotic platforms not supported by the `webview_go` library.
Note that the `make win64-headless` command can be run on both Linux and Windows, all cross-compilation is done transparently in this case.
## Usage