mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 10:35:59 +08:00
feat: add sctips help
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
@@ -40,19 +40,6 @@ declare -A supported_architectures=(
|
||||
["darwin-x86_64"]="_output/bin/platforms/darwin/amd64" # Alias for darwin-amd64
|
||||
)
|
||||
|
||||
declare -A supported_architectures_tools=(
|
||||
["linux-amd64"]="_output/bin-tools/platforms/linux/amd64"
|
||||
["linux-arm64"]="_output/bin-tools/platforms/linux/arm64"
|
||||
["linux-mips64"]="_output/bin-tools/platforms/linux/mips64"
|
||||
["linux-mips64le"]="_output/bin-tools/platforms/linux/mips64le"
|
||||
["linux-ppc64le"]="_output/bin-tools/platforms/linux/ppc64le"
|
||||
["linux-s390x"]="_output/bin-tools/platforms/linux/s390x"
|
||||
["darwin-amd64"]="_output/bin-tools/platforms/darwin/amd64"
|
||||
["windows-amd64"]="_output/bin-tools/platforms/windows/amd64"
|
||||
["linux-x86_64"]="_output/bin-tools/platforms/linux/amd64" # Alias for linux-amd64
|
||||
["darwin-x86_64"]="_output/bin-tools/platforms/darwin/amd64" # Alias for darwin-amd64
|
||||
)
|
||||
|
||||
# Check if the architecture and version are supported
|
||||
if [[ -z ${supported_architectures["$version-$architecture"]} ]]; then
|
||||
echo -e "${BLUE_PREFIX}================> Unsupported architecture: $architecture or version: $version${COLOR_SUFFIX}"
|
||||
@@ -63,18 +50,15 @@ echo -e "${BLUE_PREFIX}================> Architecture: $architecture${COLOR_SUFF
|
||||
|
||||
# Set the BIN_DIR based on the architecture and version
|
||||
BIN_DIR=${supported_architectures["$version-$architecture"]}
|
||||
BIN_DIR_TOOLS=${supported_architectures_tools["$version-$architecture"]}
|
||||
|
||||
echo -e "${BLUE_PREFIX}================> BIN_DIR: $OPENIM_ROOT/$BIN_DIR${COLOR_SUFFIX}"
|
||||
|
||||
# Don't put the space between "="
|
||||
openim_msggateway="openim-msggateway"
|
||||
msg_gateway_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
msg_gateway_source_root="$OPENIM_ROOT/cmd/openim-msggateway/"
|
||||
|
||||
msg_name="openim-rpc-msg"
|
||||
msg_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
msg_source_root="$OPENIM_ROOT/cmd/openim-rpc/openim-rpc-msg/"
|
||||
|
||||
push_name="openim-push"
|
||||
push_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
@@ -82,16 +66,13 @@ push_source_root="$OPENIM_ROOT/cmd/openim-push/"
|
||||
|
||||
openim_msgtransfer="openim-msgtransfer"
|
||||
msg_transfer_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
msg_transfer_source_root="$OPENIM_ROOT/cmd/openim-msgtransfer/"
|
||||
msg_transfer_service_num=4
|
||||
|
||||
cron_task_name="openim-crontask"
|
||||
cron_task_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
cron_task_source_root="$OPENIM_ROOT/cmd/openim-crontask/"
|
||||
|
||||
cmd_utils_name="openim-cmdutils"
|
||||
cmd_utils_binary_root="$OPENIM_ROOT/$BIN_DIR"
|
||||
cmd_utils_source_root="$OPENIM_ROOT/cmd/openim-cmdutils/"
|
||||
|
||||
# Global configuration file default dir
|
||||
config_path="$OPENIM_ROOT/config/config.yaml"
|
||||
|
||||
Reference in New Issue
Block a user