5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:50:36 +08:00

[website] add cross compile

This commit is contained in:
Lea Anthony 2021-11-02 22:19:59 +11:00
parent bd7b436631
commit 1d1238cea3
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 11 additions and 2 deletions

View File

@ -89,7 +89,7 @@ auto-imported when hitting tab in an auto-generated module wrapping your Go code
### Remote Templates
<div class="text--center">
<img src="/img/remote-mac.png" width="60%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
<img src="/img/remote-mac.png" width="80%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div>
<br/>
@ -128,11 +128,20 @@ Oh, I almost forgot.... you can also do `darwin/universal`.... :wink:
</div>
<br/>
### Cross Compilation to Windows
Because Wails v2 for Windows is pure Go, you can target Windows builds without docker.
<div class="text--center">
<img src="/img/build-cross-windows.png" width="80%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div>
<br/>
### WKWebView Renderer
V1 relied on a (now deprecated) WebView component. V2 uses the most recent WKWebKit component so expect the latest and greatest from Apple.
### In Conclusion
As I'd said in the Windows release notes, Wails v2 represents a new foundation for the project.

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB