WBM/scripts/debug.sh

18 lines
543 B
Bash
Executable file

#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$SCRIPT_DIR" || {
echo "Can not locate script directory"
exit
}
cd ..
source ./scripts/config.sh
dotnet build
rm "$WB_PLUGINS_DIR/WBM/WBM.dll"
mkdir -p "$WB_PLUGINS_DIR/WBM"
cp ./WBM/bin/Debug/net48/WBM.dll "$WB_PLUGINS_DIR/WBM/WBM.dll"
cp ./WBM/bin/Debug/net48/websocket-sharp.dll "$WB_PLUGINS_DIR/WBM/websocket-sharp.dll"
cp ./WBM/dll/ConfigurationManager.dll "$WB_PLUGINS_DIR/WBM/ConfigurationManager.dll"
cp -R ./assets "$WB_PLUGINS_DIR/WBM"