Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.33 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.33 KB

Cross Wails

Docker Image for Cross Compiling Wails Applications

Usage

You can use this image as a base image in your own Dockerfile:

FROM ghcr.io/abjrcode/cross-wails:v2.8.2 as base

# Use `wails build` to build your application

Check out the example directory for a complete example that demonstrates building a Wails applications for Linux ARM64, Linux AMD64 and Windows AMD64

Details

  • Image can cross-compile Wails applications that depend on CGO
    • Supports cross compiling to Linux ARM64 & AMD64 and Windows AMD64
    • You can also use NSIS for creating Windows installers
  • 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.7.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 :(

You can also check the background stroy on my blog if you are interested in more details :D