From c66416baaf9a22b8727d64f51355c626226f6886 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 26 May 2021 13:33:23 +0800 Subject: [PATCH] add Makefile for windows --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 1b79c7a..ec008be 100644 --- a/Makefile +++ b/Makefile @@ -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