Docker Image for Cross Compiling Wails Applications
Note
This repository serves as a fork of the original Cross Wails repository. It was detached from the original due to PRs defaulting to that repository, and adjustments being needed to tailor it for our needs.
You can utilize this Docker image as a base image in your own Dockerfile:
FROM ghcr.io/rocketblend/cross-wails:v2.10.1 as base
# Use `wails build` to build your applicationFor an illustrative example of building Wails applications for Linux AMD64, and Windows AMD64, as well as CI/CD workflows, you can refer to the RocketBlend Desktop project.
Note
Due to changes with libwebkit2gtk-4.0-dev no longer allowing multiple architectures to be install at the same time, I've remove support for ARM (for now).
- Image can cross-compile Wails applications that depend on CGO
- Supports cross compiling to Linux AMD64 and Windows AMD64
- Can be extended to support more targets and architectures but then I would recommend using goreleaser-cross-toolchain
- You can also use NSIS for creating Windows installers
- Supports cross compiling to Linux AMD64 and Windows AMD64
- It doesn't support cross compiling to MacOS because Wails doesn't support it yet
- The image tag is the same as Wails version, e.g.
v2.10.1 - The image is adopted from goreleaser-cross-toolchain but with stripped down dependencies
to minimize the image size and build time
- It is still a bit over 4GB though :(
For additional insights, you can visit the original author's blog, where they delve into the background story behind this repository.