Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.14 KB

DEVELOPERS.md

File metadata and controls

53 lines (42 loc) · 1.14 KB

Developers Document

🛠How-to-Build

Windows

Compile using Go

Automatic build.bat usage
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

MacOS, Linux (cross compile)

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