You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
821 B
28 lines
821 B
1 month ago
|
#!/bin/bash
|
||
|
|
||
|
SYSTEM=`uname -s`
|
||
|
RUNTIME_MAC=osx.10.12-x64
|
||
|
if [ $SYSTEM = "Darwin" ] ; then
|
||
|
echo "run gen in mac build computer"
|
||
|
chmod 774 $RUNTIME_MAC/protocsstruct
|
||
|
|
||
|
OUTPATH=../../pandora_svr_proj/ServerComm/protocol
|
||
|
if [ -d ${OUTPATH} ];then
|
||
|
./$RUNTIME_MAC/protocsstruct ./GameCs.proto ./GameSs.proto --csharp_out=${OUTPATH}
|
||
|
echo "success svr ***********"
|
||
|
fi
|
||
|
|
||
|
OUTPATH=../../pandora_cli_proj/pandora/Assets/Scripts/AIMachine/HotFixLogic/protocol
|
||
|
if [ -d ${OUTPATH} ];then
|
||
|
./$RUNTIME_MAC/protocsstruct ./GameCs.proto ./GameSs.proto --genclasscfg=./GenClassConfig --namespace=ProtoCSClass --csharp_out=${OUTPATH}
|
||
|
rm ${OUTPATH}/*_struct.cs
|
||
|
rm ${OUTPATH}/FixedRepeatedStruct.cs
|
||
|
rm ${OUTPATH}/GameSs_enum.cs
|
||
|
echo "success cli ***********"
|
||
|
fi
|
||
|
else
|
||
|
echo "only run in mac build computer"
|
||
|
fi
|
||
|
echo $SYSTEM
|
||
|
|