From 5bc92c6ffd76eb9015c289a340feefe941c13187 Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:36:48 +0800 Subject: [PATCH 1/4] new build.cmd --- core/build.cmd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 core/build.cmd diff --git a/core/build.cmd b/core/build.cmd new file mode 100644 index 0000000..50dd27b --- /dev/null +++ b/core/build.cmd @@ -0,0 +1,6 @@ +if not defined GOPROXY set GOPROXY=https://goproxy.io,direct +go env +@pause +go mod tidy +@pause +go build cmd/openp2p.go \ No newline at end of file From 9f536fa11a42d1e6309f0cbbb657ae8b3454dd0b Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:16:40 +0800 Subject: [PATCH 2/4] Delete core/build.cmd --- core/build.cmd | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 core/build.cmd diff --git a/core/build.cmd b/core/build.cmd deleted file mode 100644 index 50dd27b..0000000 --- a/core/build.cmd +++ /dev/null @@ -1,6 +0,0 @@ -if not defined GOPROXY set GOPROXY=https://goproxy.io,direct -go env -@pause -go mod tidy -@pause -go build cmd/openp2p.go \ No newline at end of file From 92afe57a3d1585c80285e7c7420aba660316cf0e Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:18:18 +0800 Subject: [PATCH 3/4] Create build.cmd --- build.cmd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 build.cmd diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..c62458c --- /dev/null +++ b/build.cmd @@ -0,0 +1,8 @@ +@echo. +@set GOPROXY +if not defined GOPROXY set GOPROXY=https://goproxy.io,direct +go mod tidy +if ERRORLEVEL 1 pause ERRORLEVEL:%ERRORLEVEL% +go build cmd/openp2p.go +@echo. +@pause From b88e74f89b851ca6d1be06bfc31a2263d45acab9 Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:36:51 +0800 Subject: [PATCH 4/4] Edit build.cmd --- build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cmd b/build.cmd index c62458c..a93b091 100644 --- a/build.cmd +++ b/build.cmd @@ -2,7 +2,7 @@ @set GOPROXY if not defined GOPROXY set GOPROXY=https://goproxy.io,direct go mod tidy -if ERRORLEVEL 1 pause ERRORLEVEL:%ERRORLEVEL% +if ERRORLEVEL 1 pause (value:%ERRORLEVEL%) go build cmd/openp2p.go @echo. @pause