Files
chain33-dtalk/script/build/multi-service.sh
2022-03-17 15:59:24 +08:00

41 lines
1.3 KiB
Bash

#!/bin/bash
file_path=$(
cd "$(dirname "$0")" || exit
pwd
)/../..
# shellcheck source=./util.sh
source "${file_path}"/script/build/util.sh
env_type="$1"
initOS ${env_type}
os=$(initOS ${env_type})
api_version=""
project_name="dtalk_service"
now_time=$(date "+%Y_%m_%d")
pkg_name="${project_name}_${now_time}_${os}"
echo ${pkg_name}
mkPkg "${file_path}" "${pkg_name}"
case "${api_version}" in
*)
buildGateway "${file_path}" "${pkg_name}" "gateway" "v1"
buildService "${file_path}" "${pkg_name}" "backend" "${api_version}"
buildService "${file_path}" "${pkg_name}" "backup" "${api_version}"
buildService "${file_path}" "${pkg_name}" "call" "${api_version}"
buildService "${file_path}" "${pkg_name}" "discovery" "${api_version}"
buildService "${file_path}" "${pkg_name}" "generator" "${api_version}"
buildService "${file_path}" "${pkg_name}" "group" "${api_version}"
buildService "${file_path}" "${pkg_name}" "offline-push" "${api_version}"
buildService "${file_path}" "${pkg_name}" "oss" "${api_version}"
buildService "${file_path}" "${pkg_name}" "answer" "${api_version}" "record/"
buildService "${file_path}" "${pkg_name}" "pusher" "${api_version}" "record/"
buildService "${file_path}" "${pkg_name}" "store" "${api_version}" "record/"
# tarPkg "${file_path}" "${pkg_name}" "multi-service"
;;
esac