From a7ab300ae6dae1d6dfefea300e0ce966923b6757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E7=83=A8?= Date: Tue, 1 Mar 2022 13:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/linux/build.sh | 1 + scripts/linux/build_mac.sh | 1 + scripts/linux/build_win64.sh | 1 + scripts/mac/build.sh | 1 + scripts/mac/build_linux.sh | 1 + scripts/mac/build_win64.sh | 1 + scripts/win/build.bat | 2 ++ scripts/win/build_linux.bat | 5 +++++ scripts/win/build_mac.bat | 5 +++++ 9 files changed, 18 insertions(+) create mode 100644 scripts/linux/build.sh create mode 100644 scripts/linux/build_mac.sh create mode 100644 scripts/linux/build_win64.sh create mode 100644 scripts/mac/build.sh create mode 100644 scripts/mac/build_linux.sh create mode 100644 scripts/mac/build_win64.sh create mode 100644 scripts/win/build.bat create mode 100644 scripts/win/build_linux.bat create mode 100644 scripts/win/build_mac.bat diff --git a/scripts/linux/build.sh b/scripts/linux/build.sh new file mode 100644 index 0000000..3fd9c26 --- /dev/null +++ b/scripts/linux/build.sh @@ -0,0 +1 @@ +go build -o app ../../ \ No newline at end of file diff --git a/scripts/linux/build_mac.sh b/scripts/linux/build_mac.sh new file mode 100644 index 0000000..5bf6e4d --- /dev/null +++ b/scripts/linux/build_mac.sh @@ -0,0 +1 @@ +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o app ../../ \ No newline at end of file diff --git a/scripts/linux/build_win64.sh b/scripts/linux/build_win64.sh new file mode 100644 index 0000000..e4975dc --- /dev/null +++ b/scripts/linux/build_win64.sh @@ -0,0 +1 @@ +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o app ../../ \ No newline at end of file diff --git a/scripts/mac/build.sh b/scripts/mac/build.sh new file mode 100644 index 0000000..3fd9c26 --- /dev/null +++ b/scripts/mac/build.sh @@ -0,0 +1 @@ +go build -o app ../../ \ No newline at end of file diff --git a/scripts/mac/build_linux.sh b/scripts/mac/build_linux.sh new file mode 100644 index 0000000..f25cc5b --- /dev/null +++ b/scripts/mac/build_linux.sh @@ -0,0 +1 @@ +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ../../ \ No newline at end of file diff --git a/scripts/mac/build_win64.sh b/scripts/mac/build_win64.sh new file mode 100644 index 0000000..e4975dc --- /dev/null +++ b/scripts/mac/build_win64.sh @@ -0,0 +1 @@ +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o app ../../ \ No newline at end of file diff --git a/scripts/win/build.bat b/scripts/win/build.bat new file mode 100644 index 0000000..4e313b4 --- /dev/null +++ b/scripts/win/build.bat @@ -0,0 +1,2 @@ +@echo off +go build -o app ../../ \ No newline at end of file diff --git a/scripts/win/build_linux.bat b/scripts/win/build_linux.bat new file mode 100644 index 0000000..6d68095 --- /dev/null +++ b/scripts/win/build_linux.bat @@ -0,0 +1,5 @@ +@echo off +SET CGO_ENABLED=0 +SET GOOS=linux +SET GOARCH=amd64 +go build -o app ../../ \ No newline at end of file diff --git a/scripts/win/build_mac.bat b/scripts/win/build_mac.bat new file mode 100644 index 0000000..4404d40 --- /dev/null +++ b/scripts/win/build_mac.bat @@ -0,0 +1,5 @@ +@echo off +SET CGO_ENABLED=0 +SET GOOS=darwin +SET GOARCH=amd64 +go build -o app ../../ \ No newline at end of file