mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 01:25:58 +08:00
fix: binary name modification
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
+73
-69
@@ -1,92 +1,96 @@
|
||||
#Don't put the space between "="
|
||||
msg_gateway_name="openim_msg_gateway"
|
||||
msg_gateway_binary_root="../bin/"
|
||||
# Determine the architecture and version
|
||||
architecture=$(uname -m)
|
||||
version=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Define the supported architectures and corresponding bin directories
|
||||
declare -A supported_architectures=(
|
||||
["linux-amd64"]="_output/bin/platforms/linux/amd64"
|
||||
["linux-arm64"]="_output/bin/platforms/linux/arm64"
|
||||
["linux-mips64"]="_output/bin/platforms/linux/mips64"
|
||||
["linux-mips64le"]="_output/bin/platforms/linux/mips64le"
|
||||
["linux-ppc64le"]="_output/bin/platforms/linux/ppc64le"
|
||||
["linux-s390x"]="_output/bin/platforms/linux/s390x"
|
||||
["darwin-amd64"]="_output/bin/platforms/darwin/amd64"
|
||||
["windows-amd64"]="_output/bin/platforms/windows/amd64"
|
||||
["linux-x86_64"]="_output/bin/platforms/linux/amd64" # Alias for linux-amd64
|
||||
["darwin-x86_64"]="_output/bin/platforms/darwin/amd64" # Alias for darwin-amd64
|
||||
)
|
||||
|
||||
# Check if the architecture and version are supported
|
||||
if [[ -z ${supported_architectures["$version-$architecture"]} ]]; then
|
||||
echo "Unsupported architecture: $architecture or version: $version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the BIN_DIR based on the architecture and version
|
||||
BIN_DIR=${supported_architectures["$version-$architecture"]}
|
||||
|
||||
echo "BIN_DIR: $BIN_DIR"
|
||||
|
||||
# Don't put the space between "="
|
||||
msg_gateway_name="openim-msggateway"
|
||||
msg_gateway_binary_root= $BIN_DIR
|
||||
msg_gateway_source_root="../cmd/msggateway/"
|
||||
|
||||
msg_name="openim_msg"
|
||||
msg_binary_root="../bin/"
|
||||
msg_binary_root=$BIN_DIR
|
||||
msg_source_root="../cmd/rpc/msg/"
|
||||
|
||||
push_name="openim_push"
|
||||
push_binary_root="../bin/"
|
||||
push_name="openim-push"
|
||||
push_binary_root=$BIN_DIR
|
||||
push_source_root="../cmd/push/"
|
||||
|
||||
|
||||
|
||||
msg_transfer_name="openim_msg_transfer"
|
||||
msg_transfer_binary_root="../bin/"
|
||||
msg_transfer_binary_root=$BIN_DIR
|
||||
msg_transfer_source_root="../cmd/msgtransfer/"
|
||||
msg_transfer_service_num=4
|
||||
|
||||
|
||||
sdk_server_name="openim_sdk_server"
|
||||
sdk_server_binary_root="../bin/"
|
||||
sdk_server_source_root="../cmd/Open-IM-SDK-Core/"
|
||||
|
||||
|
||||
cron_task_name="openim_cron_task"
|
||||
cron_task_binary_root="../bin/"
|
||||
cron_task_binary_root=$BIN_DIR
|
||||
cron_task_source_root="../cmd/crontask/"
|
||||
|
||||
|
||||
cmd_utils_name="openim_cmd_utils"
|
||||
cmd_utils_binary_root="../bin/"
|
||||
cmd_utils_binary_root=$BIN_DIR
|
||||
cmd_utils_source_root="../cmd/cmduitls/"
|
||||
|
||||
#Global configuration file default dir
|
||||
# Global configuration file default dir
|
||||
config_path="../config/config.yaml"
|
||||
|
||||
#servicefile dir path
|
||||
# servicefile dir path
|
||||
service_source_root=(
|
||||
#api service file
|
||||
../cmd/api/
|
||||
#rpc service file
|
||||
../cmd/rpc/user/
|
||||
../cmd/rpc/friend/
|
||||
../cmd/rpc/group/
|
||||
../cmd/rpc/auth/
|
||||
../cmd/rpc/conversation/
|
||||
../cmd/rpc/third/
|
||||
../cmd/crontask
|
||||
${msg_gateway_source_root}
|
||||
${msg_transfer_source_root}
|
||||
${msg_source_root}
|
||||
${push_source_root}
|
||||
# ${sdk_server_source_root}
|
||||
)
|
||||
#service filename
|
||||
service_names=(
|
||||
#api service filename
|
||||
openim_api
|
||||
#rpc service filename
|
||||
openim_user
|
||||
openim_friend
|
||||
openim_group
|
||||
openim_auth
|
||||
openim_conversation
|
||||
openim_third
|
||||
openim_cron_task
|
||||
${msg_gateway_name}
|
||||
${msg_transfer_name}
|
||||
${msg_name}
|
||||
${push_name}
|
||||
# ${sdk_server_name}
|
||||
# api service file
|
||||
"../cmd/api/"
|
||||
# rpc service file
|
||||
"../cmd/rpc/user/"
|
||||
"../cmd/rpc/friend/"
|
||||
"../cmd/rpc/group/"
|
||||
"../cmd/rpc/auth/"
|
||||
"../cmd/rpc/conversation/"
|
||||
"../cmd/rpc/third/"
|
||||
"../cmd/crontask"
|
||||
"${msg_gateway_source_root}"
|
||||
"${msg_transfer_source_root}"
|
||||
"${msg_source_root}"
|
||||
"${push_source_root}"
|
||||
# "${sdk_server_source_root}"
|
||||
)
|
||||
|
||||
image_names=(
|
||||
#api service file
|
||||
api
|
||||
#rpc service file
|
||||
user
|
||||
friend
|
||||
group
|
||||
auth
|
||||
conversation
|
||||
third
|
||||
cron_task
|
||||
msg_gateway
|
||||
msg_transfer
|
||||
msg
|
||||
push
|
||||
# sdk_server
|
||||
)
|
||||
# service filename
|
||||
service_names=(
|
||||
# api service filename
|
||||
"openim-api"
|
||||
# rpc service filename
|
||||
"openim_user"
|
||||
"openim_friend"
|
||||
"openim_group"
|
||||
"openim_auth"
|
||||
"openim_conversation"
|
||||
"openim_third"
|
||||
"openim_cron_task"
|
||||
"${msg_gateway_name}"
|
||||
"${msg_transfer_name}"
|
||||
"${msg_name}"
|
||||
"${push_name}"
|
||||
# "${sdk_server_name}"
|
||||
)
|
||||
Reference in New Issue
Block a user