代码拉取完成,页面将自动刷新
# engine 编译脚本
# author: wangfeng
# since: 2023-09-12
$commit_id = (git rev-list --tags --max-count = 1) | Out-String
$command = "git describe --tags ${commit_id}"
$repo = (Invoke-Expression $command) | Out-String
$version = $repo.Substring(1).Trim()
Write-Output "quant version: ${version}"
$repo = (go list -m gitee.com/quant1x/gotdx) | Out-String
$gotdx_version = ($repo -split " ")[1]
$gotdx_version = $gotdx_version.Substring(1).Trim()
Write-Output "gotdx version: $gotdx_version"
$BIN = "./bin"
$APP = "stock"
$EXT = ".exe"
$repo = "gitee.com/quant1x/engine"
$GOOS = "windows"
$GOARCH = $env:PROCESSOR_ARCHITECTURE
$GOARCH = $GOARCH.Trim().ToLower()
$command = "go env -w GOOS=${GOOS} GOARCH=${GOARCH}; go build -ldflags `"-s -w -X 'main.MinVersion=$version' -X 'main.tdxVersion=$gotdx_version'`" -o ${BIN}/${APP}${EXT} ${repo}"
Write-Output $command
Invoke-Expression $command
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。