Add icons to program

This commit is contained in:
2024-02-03 21:37:54 -04:00
parent 51221ceb94
commit e34cba1577
4 changed files with 29 additions and 4 deletions

View File

@ -1,7 +1,26 @@
.PHONY: icon syso build clean
# Export CGO_ENABLED=1
CGO_ENABLED=1
# Export C compiler
CC=gcc
build:
go build -ldflags "-H windowsgui" -o bin/
icon:
magick convert ico/VolumeFix.png ico/VolumeFix.ico
2goarray Icon ico < ico/VolumeFix.ico > ico/VolumeFix.go
syso:
rsrc -ico ico/VolumeFix.ico -o bin/VolumeFix.syso
build: icon syso
go build -ldflags "-H windowsgui" -o bin/
build-debug: icon syso
go build -o bin/VolumeFix
clean:
rm -f "ico/VolumeFix.ico"
rm -f "ico/VolumeFix.go"
rm -f "bin/VolumeFix.syso"
rm -f "bin/VolumeFix.exe"
rm -f "bin/VolumeFix"