Build/buildwindows
13 lines · 329 bytes · executable
1#!/bin/bash
2
3# Set required Windows build environment variables
4export CGO_ENABLED=1
5export GOOS=windows
6
7# Build for ARM64 (Broken due to npipe and rich-go)
8# export GOARCH=arm64
9# CC=x86_64-w64-mingw32-gcc ./Build/buildwindows-arm64
10
11# Build for x86_64
12export GOARCH=amd64
13CC=x86_64-w64-mingw32-gcc ./Build/buildwindows-x86_64