forked from versx/WhMgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·32 lines (26 loc) · 915 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Git remote update && git pull
echo "Get newest changes from Repo"
git remote update && git pull
# Build WhMgrr.dll
echo "Building WhMgr..."
~/.dotnet/dotnet build || dotnet build
# Copy example configs
if [ "$1" == "examples" ] || [ "$1" == "example" ] || [ "$1" == "all" ]; then
echo "Copying examples"
cp -R "examples/alerts" "bin/"
cp -R "examples/filters" "bin/"
fi
if [ "$1" == "geofences" ] || [ "$1" == "geofence" ] || [ "$1" == "all" ]; then
echo "Copying geofences..."
cp -R "geofences" "bin/"
fi
# Copy locale translation files
echo "Copying locale translation files... "
mkdir -p "bin/static"
cp -R "static/locale" "bin/static/"
echo "Copying latest master file..."
mkdir -p "bin/static/data"
cp "static/data/masterfile.json" "bin/static/data/masterfile.json"
cp "static/data/cpMultipliers.json" "bin/static/data/cpMultipliers.json"
echo "Update Complete"