Add icons to program
This commit is contained in:
23
Makefile
23
Makefile
@ -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"
|
Reference in New Issue
Block a user