更新
This commit is contained in:
@@ -261,6 +261,8 @@ class BuildService implements Serializable {
|
|||||||
script.sh "go mod verify"
|
script.sh "go mod verify"
|
||||||
|
|
||||||
script.echo "🔨 开始编译Go程序..."
|
script.echo "🔨 开始编译Go程序..."
|
||||||
|
// goFilePath 可能为空;为空时不拼接路径
|
||||||
|
def mainPath = goFilePath ? "${goFilePath}/${mainFile}" : mainFile
|
||||||
// 执行编译命令
|
// 执行编译命令
|
||||||
if (buildFlags) {
|
if (buildFlags) {
|
||||||
script.sh "go build ${buildFlags} -o ${goFile} ${mainFile}"
|
script.sh "go build ${buildFlags} -o ${goFile} ${mainFile}"
|
||||||
|
|||||||
Reference in New Issue
Block a user