#!/bin/bash 

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}
ulimit -c unlimited
export QT_QPA_PLATFORM=xcb


get_arch=`arch`
if [[ $get_arch =~ "x86_64" ]];then
# export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
    echo "this is x86"
elif [[ $get_arch =~ "aarch64" ]];then
    echo "this is arm64"
elif [[ $get_arch =~ "mips64" ]];then
     #/usr/lib/mips64el-linux-gnuabi64
     export LD_LIBRARY_PATH=$DIR/lib/
     echo "this is mips64"
fi

$DIR/BizCloudEnterprise --url=$@
