23 lines
453 B
Bash
Executable file
23 lines
453 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 --configuration Release
|
|
[ -e ./dist ] && rm -rf ./dist
|
|
mkdir ./dist
|
|
cp ./WBM/bin/Release/net48/WBM.dll ./dist/WBM.dll
|
|
cp -R ./assets ./dist/assets
|
|
|
|
[ -e ./WBM.zip ] && rm ./WBM.zip
|
|
cd ./dist
|
|
zip -r WBM.zip ./*
|
|
mv ./WBM.zip ..
|
|
cd ..
|
|
rm -rf ./dist
|