Cross-compilation attempts (not successful yet)
This commit is contained in:
@@ -92,9 +92,28 @@ Just run `make` and get all the resulting files in the `out` directory.
|
||||
|
||||
TBD
|
||||
|
||||
### Windows
|
||||
### Windows x64 (native)
|
||||
|
||||
TBD
|
||||
You need to have Go 1.23.1 and above and a POSIX-compatible "make" in your %PATH%.
|
||||
|
||||
Just run `make win64` and get all the resulting files in the `out` directory.
|
||||
|
||||
### Windows x64 (cross-compiling from Linux)
|
||||
|
||||
This process is still unstable and can fail at any time.
|
||||
|
||||
1. Install the `mingw-w64` compiler package.
|
||||
2. Run `make win64-cross`
|
||||
|
||||
If the compiler complains about the `EventToken.h` file when building `webview_go` dependency, locate the include files and symlink it to the real `eventtoken.h` like this (as root):
|
||||
|
||||
```
|
||||
# ln -s /usr/x86_64-w64-mingw32/include/eventtoken.h /usr/x86_64-w64-mingw32/include/EventToken.h
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user