add Makefile for windows

This commit is contained in:
2021-05-26 13:33:23 +08:00
parent b243d25ef5
commit c66416baaf

View File

@@ -5,3 +5,9 @@ dist:
cp -f web/axios.min.js dist/web/axios.min.js
cp -f web/vue.global.prod.js dist/web/vue.js
cp -f web/vue-router.global.prod.js dist/web/vue-router.js
linux:
go build
windows:
CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build