Usage:
<no args>/single:
Build default wsldl.exe
all:
Build everything, including exe with icons and default wsldl.exe
resources:
Build only .syso files
icons:
Build exe with icons(must be executed after running resources)
clean:
Clean(remove) .syso files after building exe with icons
singlewor:
Build exe without any manifest/resources
To cross-compile ARM64 from AMD64 or vice versa, run:
set GOARCH=ArchitectureName
Architecture names can be:
arm64
amd64
arm
386
Run this command in shell
$ cd src
$ env GOOS=windows GOARCH=amd64 go build -ldflags "-w -s"
Optionally, to add an icon to the exe, create and link a resource with
$ go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
$ export PATH=$PATH:~/go/bin
$ goversioninfo -icon res/DistroName/icon.ico -o src/DistroName.syso
$ env GOOS=windows GOARCH=ArchitectureName go build -ldflags "-w -s" -o DistroName.exe