diff --git a/go.work.sum b/go.work.sum index e3a12425..7d032082 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,5 +1,6 @@ github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7 h1:u9SHYsPQNyt5tgDm3YN7+9dYrpK96E5wFilTFWIDZOM= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738 h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0= diff --git a/scripts/lib/release.sh b/scripts/lib/release.sh index acc3730e..9fe0e4e9 100755 --- a/scripts/lib/release.sh +++ b/scripts/lib/release.sh @@ -155,9 +155,11 @@ function iam::release::package_server_tarballs() { platform=${platform_long##${LOCAL_OUTPUT_BINPATH}/} # Strip LOCAL_OUTPUT_BINPATH platform_tag=${platform/\//-} # Replace a "/" for a "-" iam::log::status "Starting tarball: server $platform_tag" - + echo "++++ platform: ${platform}" + echo "++++ platform_tag: ${platform_tag}" ( local release_stage="${RELEASE_STAGE}/server/${platform_tag}/iam" + echo "++++ release_stage: ${release_stage}" rm -rf "${release_stage}" mkdir -p "${release_stage}/server/bin" @@ -195,6 +197,8 @@ function iam::release::package_client_tarballs() { platform=${platform_long##${LOCAL_OUTPUT_BINPATH}/} # Strip LOCAL_OUTPUT_BINPATH platform_tag=${platform/\//-} # Replace a "/" for a "-" iam::log::status "Starting tarball: client $platform_tag" + echo "+++ platform: ${platform}" + echo "+++ platform_tag: ${platform_tag}" ( local release_stage="${RELEASE_STAGE}/client/${platform_tag}/iam" @@ -203,6 +207,14 @@ function iam::release::package_client_tarballs() { local client_bins=("${IAM_CLIENT_BINARIES[@]}") + echo "++++ client_bins: ${client_bins[@]}" + # client_bins: changelog component conversion-msg conversion-mysql formitychecker imctl infra ncpu openim-web up35 versionchecker yamlfmt + # Copy client binclient_bins:aries + echo "++++ cp source: ${client_bins[@]/bin/#/${LOCAL_OUTPUT_BINTOOLSPATH}/${platform}/}" + # ++++ cp source: changelog component conversion-msg conversion-mysql formitychecker imctl infra ncpu openim-web up35 versionchecker yamlfmt + echo "++++ cp target: ${release_stage}/client/bin/" + # ++++ cp target: /data/workspaces/open-im-server/_output/release-stage/client/darwin-amd64/openim/client/bin/ + # This fancy expression will expand to prepend a path # (${LOCAL_OUTPUT_BINPATH}/${platform}/) to every item in the # client_bins array. @@ -212,6 +224,7 @@ function iam::release::package_client_tarballs() { iam::release::clean_cruft local package_name="${RELEASE_TARS}/iam-client-${platform_tag}.tar.gz" + echo "+++ release_stage: ${release_stage}" iam::release::create_tarball "${package_name}" "${release_stage}/.." ) & done @@ -594,4 +607,3 @@ function iam::release::generate_changelog() { git commit -a -m "docs(changelog): add CHANGELOG-${IAM_GIT_VERSION#v}.md" git push -f origin master # 最后将 CHANGELOG 也 push 上去 } -