2024-02-03 21:37:54 -04:00
|
|
|
.PHONY: icon syso build clean
|
|
|
|
|
2024-02-03 15:10:40 -04:00
|
|
|
# Export CGO_ENABLED=1
|
|
|
|
CGO_ENABLED=1
|
|
|
|
# Export C compiler
|
|
|
|
CC=gcc
|
|
|
|
|
2024-02-03 21:37:54 -04:00
|
|
|
icon:
|
|
|
|
magick convert ico/VolumeFix.png ico/VolumeFix.ico
|
|
|
|
2goarray Icon ico < ico/VolumeFix.ico > ico/VolumeFix.go
|
|
|
|
|
|
|
|
syso:
|
2024-02-03 21:49:41 -04:00
|
|
|
rsrc -ico ico/VolumeFix.ico -o ico/VolumeFix.syso
|
2024-02-03 21:37:54 -04:00
|
|
|
|
|
|
|
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"
|
2024-02-03 21:49:41 -04:00
|
|
|
rm -f "ico/VolumeFix.syso"
|
2024-02-03 21:37:54 -04:00
|
|
|
rm -f "bin/VolumeFix.exe"
|
|
|
|
rm -f "bin/VolumeFix"
|