mirror of
https://github.com/MTSGJ/opensim.currency.git
synced 2026-07-27 21:10:39 +00:00
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
CONFIGPATH=./config
|
|
OPNSIMPATH=../bin
|
|
DOTNETVER=9
|
|
|
|
echo "==================="
|
|
echo "DTL/NSL_CURRENCY"
|
|
echo "==================="
|
|
|
|
./clean.sh
|
|
./runprebuild.net.sh $DOTNETVER
|
|
dotnet build -c Release OpenSim.Currency.sln || exit 1
|
|
|
|
echo
|
|
cp -f bin/net${DOTNETVER}.0/OpenSim.Data.MySQL.MySQLMoneyDataWrapper.dll $OPNSIMPATH
|
|
cp -f bin/net${DOTNETVER}.0/OpenSim.Modules.Currency.dll $OPNSIMPATH
|
|
cp -f bin/net${DOTNETVER}.0/MoneyServer.dll $OPNSIMPATH
|
|
cp -f bin/net${DOTNETVER}.0/MoneyServer $OPNSIMPATH
|
|
cp -f bin/net${DOTNETVER}.0/MoneyServer.runtimeconfig.json $OPNSIMPATH
|
|
|
|
#
|
|
rm -f $OPNSIMPATH/OpenSim.Forge.Currency.dll
|
|
|
|
if [ ! -f $OPNSIMPATH/MoneyServer.ini ]; then
|
|
cp $CONFIGPATH/MoneyServer.ini $OPNSIMPATH
|
|
else
|
|
cp $CONFIGPATH/MoneyServer.ini $OPNSIMPATH/MoneyServer.ini.example
|
|
fi
|
|
|
|
if [ ! -f $OPNSIMPATH/MoneyServer.dll.config ]; then
|
|
cp $CONFIGPATH/MoneyServer.exe.config $OPNSIMPATH/MoneyServer.dll.config
|
|
fi
|
|
|
|
# Sample Server Cert file 1 for MoneyServer.exe
|
|
if [ ! -f $OPNSIMPATH/SineWaveCert.pfx ]; then
|
|
cp $CONFIGPATH/SineWaveCert.pfx $OPNSIMPATH
|
|
fi
|
|
|
|
# Sample Server Cert file 2 (JOGRID.NET) for MoneyServer.exe. No password
|
|
if [ ! -f $OPNSIMPATH/server_cert.p12 ]; then
|
|
cp $CONFIGPATH/server_cert.p12 $OPNSIMPATH
|
|
fi
|
|
|
|
|