+ implemented acore dashboard for windows + integrated acore dashboard for windows in our pipeline + implemented dry run for windows build + fixed permissions issue for all the operating systems + code clean
22 lines
793 B
Bash
22 lines
793 B
Bash
APP_NAME=$1
|
|
CONFIG_FOLDER=${2:-"etc"}
|
|
BIN_FOLDER=${3-"bin"}
|
|
MYSQL_ROOT_PASSWORD=${4:-""}
|
|
|
|
|
|
echo "LoginDatabaseInfo = \"localhost;3306;root;$MYSQL_ROOT_PASSWORD;acore_auth\"" >> ./env/dist/$CONFIG_FOLDER/$APP_NAME.conf
|
|
|
|
# worldserver or dbimport
|
|
if [[ $APP_NAME != "authserver" ]]; then
|
|
{
|
|
echo "WorldDatabaseInfo = \"localhost;3306;root;$MYSQL_ROOT_PASSWORD;acore_world\""
|
|
echo "CharacterDatabaseInfo = \"localhost;3306;root;$MYSQL_ROOT_PASSWORD;acore_characters\""
|
|
} >> ./env/dist/$CONFIG_FOLDER/$APP_NAME.conf
|
|
fi
|
|
|
|
if [[ $APP_NAME == "worldserver" ]]; then
|
|
echo "DataDir = \"./data/\"" >> ./env/dist/$CONFIG_FOLDER/$APP_NAME.conf
|
|
|
|
git clone --depth=1 --branch=master --single-branch https://github.com/ac-data/ac-data.git ./env/dist/$BIN_FOLDER/data
|
|
fi
|