You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 lines
317 B

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