From 068cfc1056b0b69c40b0325e3563d819ec9455dd Mon Sep 17 00:00:00 2001 From: wenfei Date: Thu, 3 Jul 2025 11:10:08 +0800 Subject: [PATCH] =?UTF-8?q?go=20build=E6=89=93=E5=8C=85=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beepack.sh | 8 ++++++++ goGet.sh | 17 ----------------- install_goget.sh | 19 ++++++++++++++++--- 3 files changed, 24 insertions(+), 20 deletions(-) delete mode 100755 goGet.sh diff --git a/beepack.sh b/beepack.sh index 0c5ea4a..3284ed6 100755 --- a/beepack.sh +++ b/beepack.sh @@ -9,3 +9,11 @@ bee pack -be GOOS=linux GOARCH=amd64 bee pack -be GOOSwindows GOARCH=amd64 或 bee pack -be GOOS=windows GOARCH=amd64 + + +#go build打包方式 +GOOS=windows GOARCH=amd64 go build + +GOOS=linux GOARCH=amd64 go build + +GOOS=darwin GOARCH=amd64 go build \ No newline at end of file diff --git a/goGet.sh b/goGet.sh deleted file mode 100755 index a5d574c..0000000 --- a/goGet.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -#export GOPROXY=https://goproxy.io - -mkdir -p $HOME/goftpdir -#chmod 777 $HOME/goftpdir -go get github.com/astaxie/beego || echo github.com/astaxie/beego -go get github.com/satori/go.uuid || echo github.com/satori/go.uuid -go get github.com/beego/bee || echo github.com/beego/bee -go get github.com/go-sql-driver/mysql || echo github.com/go-sql-driver/mysql - -go install github.com/beego/bee/v2@latest - -#gorm -go get -u gorm.io/gorm -#gorm mysql driver -go get -u gorm.io/driver/mysql \ No newline at end of file diff --git a/install_goget.sh b/install_goget.sh index bc40383..dbb4c53 100755 --- a/install_goget.sh +++ b/install_goget.sh @@ -1,11 +1,24 @@ -go get +#!/bin/bash +#go1.24.1 +#remove .idea in remote +#git rm -r --cached .idea +#export GOPROXY=https://goproxy.io -#go get github.com/beego/bee/v2 -#go get -u github.com/beego/bee/v2 +mkdir -p $HOME/goftpdir + +go get github.com/astaxie/beego || echo github.com/astaxie/beego +go get github.com/satori/go.uuid || echo github.com/satori/go.uuid +go get github.com/beego/bee || echo github.com/beego/bee +go get github.com/go-sql-driver/mysql || echo github.com/go-sql-driver/mysql go install github.com/beego/bee/v2@latest +#gorm +go get -u gorm.io/gorm +#gorm mysql driver +go get -u gorm.io/driver/mysql + #https://github.com/beego/bee