Skip to content

Docker Image for Cross Compiling CGO Wails Applications

License

Notifications You must be signed in to change notification settings

abjrcode/cross-wails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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