From f7c68897c70479eda375073e9623867b68bdf5be Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 11 Apr 2021 10:44:14 +0500 Subject: [PATCH] Build app without Go modules --- make.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make.bat b/make.bat index 193f058..18368b4 100644 --- a/make.bat +++ b/make.bat @@ -1 +1,5 @@ -go build -ldflags "-H=windowsgui -linkmode=external -s -w" -buildmode=pie -trimpath \ No newline at end of file +@echo off +setlocal +set GO111MODULE=off +go build -ldflags "-H=windowsgui -linkmode=external -s -w" -buildmode=pie -trimpath +endlocal