Add opensim.currency support to mkdist

This commit is contained in:
lickx
2025-03-24 05:48:46 +01:00
parent 23dd51c733
commit bb6cf5e9fe
2 changed files with 17 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ rem if exist %VERSION_FILE% del %VERSION_FILE%
SET TARGET_ZIP=opensim-%GIT_BRANCH%-%LAST_COMMIT_DATE%_%GIT_REV%.zip
echo %TARGET_ZIP%
set excludes=-x "*Tests*" "bin/Gloebit.*" "bin/OpenSimMutelist.Modules.*"
set excludes=-x "*Tests*" "bin/Gloebit.*" "bin/OpenSimMutelist.Modules.*" "bin/MoneyServer.*" "OpenSim.Data.MySQL.MySQLMoneyDataWrapper.*" "OpenSim.Modules.Currency.dll.*" "OpenSim.ini.sample" "server_cert.p12" "SineWaveCert.pfx"
zip -r -o "%TARGET_ZIP%" bin CONTRIBUTORS.txt LICENSE.txt README.md ThirdPartyLicenses %excludes%
if not exist bin\OpenSimMutelist.Modules.dll goto skipmutelist
@@ -36,5 +36,12 @@ copy addon-modules\Gloebit\GloebitMoneyModule\Gloebit.ini.example bin\Gloebit.in
zip -r -o "%TARGET_ZIP%" bin/Gloebit.* %excludes%
:skipgloebit
if not exist bin\MoneyServer.dll goto skipmoneyserver
SET TARGET_ZIP=moneyserver-%GIT_BRANCH%-%LAST_COMMIT_DATE%_%GIT_REV%.zip
set excludes=-x "*Tests*"
echo %TARGET_ZIP%
zip -r -o "%TARGET_ZIP%" bin/MoneyServer.* bin/OpenSim.Data.MySQL.MySQLMoneyDataWrapper.* bin/OpenSim.Modules.Currency.* bin/OpenSim.ini.sample bin/server_cert.p12 bin/SineWaveCert.pfx %excludes%
:skipmoneyserver
:end

View File

@@ -9,7 +9,7 @@ echo "${GIT_BRANCH}@${GIT_REV} (${LAST_COMMIT_DATE})" > bin/.version
# or just ommit extended version info:
#rm -f bin/.version
EXCLUDES="*Tests* *Gloebit* *OpenSimMutelist*"
EXCLUDES="*Tests* *Gloebit* *OpenSimMutelist* *MoneyServer* *OpenSim.Data.MySQL.MySQLMoneyDataWrapper* *OpenSim.Modules.Currency* *OpenSim.ini.sample* *server_cert.p12* *SineWaveCert.pfx*"
TARGETZIP=opensim-${GIT_BRANCH}-${LAST_COMMIT_DATE}_${GIT_REV}.zip
echo "${TARGETZIP}"
zip -r -o ${TARGETZIP} bin CONTRIBUTORS.txt LICENSE.txt README.md ThirdPartyLicenses -x ${EXCLUDES}
@@ -31,3 +31,11 @@ if [ -f bin/Gloebit.dll ]; then
zip -r -o ${TARGETZIP} bin/Gloebit.* -x ${EXCLUDES}
fi
#Make seperate zip for moneyserver:
if [ -f bin/MoneyServer.dll ]; then
TARGETZIP=moneyserver-${GIT_BRANCH}-${LAST_COMMIT_DATE}_${GIT_REV}.zip
EXCLUDES="*Tests*"
echo "${TARGETZIP}"
zip -r -o ${TARGETZIP} bin\MoneyServer.* bin\OpenSim.Data.MySQL.MySQLMoneyDataWrapper.* bin\OpenSim.Modules.Currency.* bin\OpenSim.ini.sample bin\server_cert.p12 bin\SineWaveCert.pfx -x ${EXCLUDES}
fi