GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • sh
  • prod
  • build.sh
  • f7c751ed   build📦️:构建脚本 Browse Code »
    王家文
    2024-04-29 23:49:13 +0800  
build.sh 349 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# !/bin/bash


export GOPATH="/code/go:/code/go/apigame"
export GO111MODULE=on
export GOPROXY=https://goproxy.io,direct

codedir=/code/go/apigame/src
cd ${codedir}
if [ $? -ne 0 ];then
   echo "cd ${codedir} error"
   exit 3
fi
go build
if [ $? -ne 0 ]; then
   echo "go build $codedir error"
   exit 3
fi

echo "go build $codedir is ok...."
exit 0