Wails Cross-Compilation: One Command Builds Windows and Linux Apps

Cross-compilation with Wails (2025)

On 2025-12-9, I tested cross-compiling the official Svelte template of Wails v2.11.0 on my amd64 Ubuntu 24 laptop with Go v1.25.5. A single command produced executables and installers for Linux and Windows, but MacOS is skipped due to Apple's restrictions. The Windows binaries are statically linked, while the Linux one is dynamically linked. Cross-compiling to linux/arm64 fails with assembler errors, and GoReleaser integration also fails. The recommended GitHub action has unaddressed issues.

When I accidentally included a platform that doesn’t exist, I got a helpful message that included this: Supported platforms: darwin,darwin/amd64,darwin/arm64,darwin/universal,linux,linux/amd64,linux/arm64,linux/arm,windows,windows/amd64,windows/arm64,windows/386

More from this day

2026-08-09