Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kebiao committed May 9, 2018
2 parents 6e08aa2 + 04ce6ca commit 07769ae
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gensdk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

currPath=$(pwd)
keyStr="/kbengine/"

bcontain=`echo $currPath|grep $keyStr|wc -l`


if [ $bcontain = 0 ]
then
export KBE_ROOT=$(cd ../; pwd)
else
export KBE_ROOT="$(pwd | awk -F "/kbengine/" '{print $1}')/kbengine"
fi

export KBE_RES_PATH="$KBE_ROOT/kbe/res/:$(pwd):$(pwd)/res:$(pwd)/scripts/"
export KBE_BIN_PATH="$KBE_ROOT/kbe/bin/server/"

echo KBE_ROOT = \"${KBE_ROOT}\"
echo KBE_RES_PATH = \"${KBE_RES_PATH}\"
echo KBE_BIN_PATH = \"${KBE_BIN_PATH}\"

$KBE_BIN_PATH/kbcmd --clientsdk=unity --outpath=$currPath/kbengine_unity3d_plugins
$KBE_BIN_PATH/kbcmd --clientsdk=ue4 --outpath=$currPath/kbengine_ue4_plugins

0 comments on commit 07769ae

Please sign in to comment.