set GO111MODULE=on set GOARCH=386 set releasedate=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% rsrc -manifest main.manifest -ico main.ico -o main.syso go generate go build -ldflags="-s -w -H=windowsgui -X 'main.MinVersion=1.0.0.1' -X 'main.PublishDate=%releasedate%'" upx -9 ./go_to_windows.exe