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

Original title: Cross-compilation with Wails (2025)

> Hacker News story 49188559 · language: en · submitted 2026-08-05
> Web version: https://zeli.app/story/49188559
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 12 · by [auraham](<https://news.ycombinator.com/user?id=auraham>) · 💬 2
[original](<https://chriswheeler.dev/posts/cross-compilation-with-wails/>) · [HN discussion](<https://news.ycombinator.com/item?id=49188559>)

## Summary

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.

## Key quote

> 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

---

## Cite

- Page: https://zeli.app/story/49188559
- Date: 2026-08-05
- Source: chriswheeler.dev (https://chriswheeler.dev/posts/cross-compilation-with-wails/)
- Hacker News: https://news.ycombinator.com/item?id=49188559

## Other languages

- zh: https://zeli.app/zh/story/49188559 · markdown: https://zeli.app/zh/story/49188559.md
