#!/bin/bash project=./ILRuntime/HotFix_Project destDir=../mgame_cli/mGame/Assets/Resources/HotFixBytes rm ${project}/obj/Debug/HotFix_Project.dll rm ${project}/obj/Debug/HotFix_Project.dll.mdb mdtool build ${project}/HotFix_Project.sln srcDll=${project}/obj/Debug/HotFix_Project.dll if [ ! -f ${srcDll} ]; then echo "build HotFix_Project.dll failed" exit -1 fi if [ ! -d ${destDir} ]; then mkdir ${destDir} fi cp ${project}/obj/Debug/HotFix_Project.dll ${destDir}/HotFix_Project.dll.bytes cp ${project}/obj/Debug/HotFix_Project.dll.mdb ${destDir}/HotFix_Project.pdb.bytes