Skip to content

Commit

Permalink
feat: set openim lint
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw) <[email protected]>
  • Loading branch information
cubxxw committed Jan 12, 2024
1 parent 1ebc2be commit 54247d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -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=
16 changes: 14 additions & 2 deletions scripts/lib/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand All @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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 上去
}

0 comments on commit 54247d9

Please sign in to comment.