gitee.com/quant1x/engine@v1.8.4/publish-linux-amd64.sh (about) 1 #!/bin/sh 2 # 获取当前路径, 用于返回 3 p0=`pwd` 4 # 获取脚本所在路径, 防止后续操作在非项目路径 5 p1=$(cd $(dirname $0);pwd) 6 cd $p1 7 8 source ./publish-compile.sh 9 10 # linux amd64 11 GOOS=linux 12 GOARCH=amd64 13 app=stock 14 ext= 15 16 compile $app $ext 17 18 cd $p0