build(gen1): include NexTraffic, NexTransit, NexSmartLight and OGLWeather in default server build (#339)
* build(gen1): always register NexTraffic/NexTransit/NexSmartLight in regenerated OpenSim solution * build(nextraffic): copy addon DLL into simulator bin after every normal MSBuild * build(nextransit): copy addon DLL into simulator bin after every normal MSBuild * build(nexsmartlight): copy addon DLL into simulator bin after every normal MSBuild * build(nextraffic): stable project GUID for regenerated solution * build(nextransit): stable project GUID for regenerated solution * build(nexsmartlight): stable project GUID for regenerated solution * build(gen1): include OGLWeather alongside all NexCity addons in generated server solution * build(oglweather): automatically emit weather DLL to simulator bin in regular solution builds * build(gen1): add four addons to checked-in OpenSim.sln for plain dotnet build * build(gen1): verify all four addon DLLs in bin with default compile.sh * test(gen1): require weather and all city addons in both checked-in and regenerated solutions * ci(gen1): require four bundled DLLs after actual NexVerse Release solution build * docs(gen1): document automatic server solution build and bin deployment for NexTraffic * docs(gen1): document automatic server solution build and bin deployment for NexTransit * docs(gen1): document automatic server solution build and bin deployment for NexSmartLight * docs(gen1): document automatic server solution build and bin deployment for OGLWeather * test(gen1): accept platform-independent sln path separators in bundled addon verification
This commit is contained in:
1 parent
8e57845cf2
commit
655bf90c38
13 files changed
+170
-1
No files matched your search
@@ -626,6 +626,31 @@ jobs:
|
||||
shell: bash
|
||||
run: dotnet build --configuration Release OpenSim.sln
|
||||
|
||||
|
||||
- name: Verify server build includes all four simulator addon DLLs
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 tools/ci/verify_gen1_nex_city_addons.py
|
||||
for addon in OGLWeather NexTraffic NexTransit NexSmartLight; do
|
||||
test -s "bin/OpenGenesisLINK.Addons.${addon}.dll" || {
|
||||
echo "::error::Release build is missing ${addon} DLL in simulator bin"
|
||||
exit 1
|
||||
}
|
||||
test -s "addons/${addon}/bin/Release/net8.0/OpenGenesisLINK.Addons.${addon}.dll" || {
|
||||
echo "::error::Release build is missing ${addon} project output"
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
solution = Path("OpenSim.sln").read_text().replace(chr(92), "/")
|
||||
for addon in ("OGLWeather", "NexTraffic", "NexTransit", "NexSmartLight"):
|
||||
path = f"addons/{addon}/OpenGenesisLINK.Addons.{addon}.csproj"
|
||||
assert path in solution, f"Regenerated solution omitted {addon}"
|
||||
print("Release build: four add-on projects and four simulator bin DLLs PASS")
|
||||
PY
|
||||
|
||||
- name: Regression-test World API P0 password recovery against MariaDB
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
+24
@@ -126,12 +126,36 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Robust", "OpenSim/Server/Ro
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmartThreadPool", "ThirdParty/SmartThreadPool/SmartThreadPool.csproj", "{6D8D7852-0000-0000-0000-000000000000}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGenesisLINK.Addons.NexTraffic", "addons/NexTraffic/OpenGenesisLINK.Addons.NexTraffic.csproj", "{AF51F7E2-91D2-4801-AB77-F512A0430101}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGenesisLINK.Addons.NexTransit", "addons/NexTransit/OpenGenesisLINK.Addons.NexTransit.csproj", "{AF51F7E2-91D2-4801-AB77-F512A0430102}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGenesisLINK.Addons.NexSmartLight", "addons/NexSmartLight/OpenGenesisLINK.Addons.NexSmartLight.csproj", "{AF51F7E2-91D2-4801-AB77-F512A0430103}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenGenesisLINK.Addons.OGLWeather", "addons/OGLWeather/OpenGenesisLINK.Addons.OGLWeather.csproj", "{AF51F7E2-91D2-4801-AB77-F512A0430104}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430101}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430101}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430101}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430101}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430102}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430102}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430102}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430102}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430103}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430103}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430103}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430103}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430104}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430104}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430104}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AF51F7E2-91D2-4801-AB77-F512A0430104}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{866B91D3-0000-0000-0000-000000000000}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{866B91D3-0000-0000-0000-000000000000}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{866B91D3-0000-0000-0000-000000000000}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<AssemblyName>OpenGenesisLINK.Addons.NexSmartLight</AssemblyName>
|
||||
<ProjectGuid>{AF51F7E2-91D2-4801-AB77-F512A0430103}</ProjectGuid>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
@@ -14,4 +15,13 @@
|
||||
<Reference Include="OpenMetaverseTypes"><HintPath>../../bin/OpenMetaverseTypes.dll</HintPath><Private>false</Private></Reference>
|
||||
<Reference Include="log4net"><HintPath>../../bin/log4net.dll</HintPath><Private>false</Private></Reference>
|
||||
</ItemGroup>
|
||||
<!-- Normal OpenSim.sln build must deposit the three independent add-in DLLs
|
||||
beside OpenSim.exe for Mono.Addins region module discovery. -->
|
||||
<Target Name="CopyAddonToSimulatorBin" AfterTargets="Build"
|
||||
Condition="'$(DesignTimeBuild)' != 'true'">
|
||||
<MakeDir Directories="$(MSBuildThisFileDirectory)../../bin" />
|
||||
<Copy SourceFiles="$(TargetPath)"
|
||||
DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"
|
||||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,5 +1,12 @@
|
||||
# NexSmartLight 0.1.0 – automatische Stadtbeleuchtung
|
||||
|
||||
## Automatischer Standard-Build (Generation 1)
|
||||
|
||||
Dieses Addon wird zusammen mit OpenGenesisLINK automatisch über `./runprebuild.sh` und `dotnet build -c Release OpenSim.sln` erstellt. Die DLL `OpenGenesisLINK.Addons.NexSmartLight.dll` wird dabei automatisch in `bin/` abgelegt, **ohne einen separaten Addon-Build oder Installationsschritt**. Das funktioniert auch über die automatisch erzeugte `compile.sh`. Die Build-Integration installiert keine Dateien auf fremden Servern und aktiviert das Addon nicht automatisch; `Enabled = false` bleibt die sichere Vorgabe.
|
||||
|
||||
Die vorhandenen `addon-modules/.../build.sh`-Skripte bleiben ausschließlich für gezielte Einzel-Builds und separate Simulatorinstallationen bestehen.
|
||||
|
||||
|
||||
**Eigenständiges opt-in OpenGenesisLINK-Addon.** Der Simulator sendet den gewünschten Lampenstatus nach lokaler Uhrzeit an alle geladenen Regionen. Der Zustand wird mit Deutschland-Zeitzone `Europe/Berlin` einschließlich Sommerzeit berechnet. Er greift **nicht** in EEP, Estate, Terrain oder bestehende Straßenlaternen ein.
|
||||
|
||||
## Einbau
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<AssemblyName>OpenGenesisLINK.Addons.NexTraffic</AssemblyName>
|
||||
<ProjectGuid>{AF51F7E2-91D2-4801-AB77-F512A0430101}</ProjectGuid>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
@@ -14,4 +15,13 @@
|
||||
<Reference Include="OpenMetaverseTypes"><HintPath>../../bin/OpenMetaverseTypes.dll</HintPath><Private>false</Private></Reference>
|
||||
<Reference Include="log4net"><HintPath>../../bin/log4net.dll</HintPath><Private>false</Private></Reference>
|
||||
</ItemGroup>
|
||||
<!-- Normal OpenSim.sln build must deposit the three independent add-in DLLs
|
||||
beside OpenSim.exe for Mono.Addins region module discovery. -->
|
||||
<Target Name="CopyAddonToSimulatorBin" AfterTargets="Build"
|
||||
Condition="'$(DesignTimeBuild)' != 'true'">
|
||||
<MakeDir Directories="$(MSBuildThisFileDirectory)../../bin" />
|
||||
<Copy SourceFiles="$(TargetPath)"
|
||||
DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"
|
||||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,5 +1,12 @@
|
||||
# NexTraffic 0.1.0 – simulatorweite Ampelsteuerung
|
||||
|
||||
## Automatischer Standard-Build (Generation 1)
|
||||
|
||||
Dieses Addon wird zusammen mit OpenGenesisLINK automatisch über `./runprebuild.sh` und `dotnet build -c Release OpenSim.sln` erstellt. Die DLL `OpenGenesisLINK.Addons.NexTraffic.dll` wird dabei automatisch in `bin/` abgelegt, **ohne einen separaten Addon-Build oder Installationsschritt**. Das funktioniert auch über die automatisch erzeugte `compile.sh`. Die Build-Integration installiert keine Dateien auf fremden Servern und aktiviert das Addon nicht automatisch; `Enabled = false` bleibt die sichere Vorgabe.
|
||||
|
||||
Die vorhandenen `addon-modules/.../build.sh`-Skripte bleiben ausschließlich für gezielte Einzel-Builds und separate Simulatorinstallationen bestehen.
|
||||
|
||||
|
||||
**Eigenständiges, opt-in OpenGenesisLINK Generation-1-Addon.** Der Server berechnet auf Basis der UTC-Unixzeit und eines einheitlichen Takts synchronisierte Ampelphasen und sendet sie als Region-Chat an freiwillig platzierte Ampelobjekte. Das verhindert widersprüchliche Ampelphasen, sofern beide Seiten derselben Kreuzung den gleichen Serverkanal nutzen. Ein externer Verkehrsleitrechner, echte Fahrzeuge und physische Kollisionsvermeidung sind nicht Bestandteil dieses MVP.
|
||||
|
||||
## Einbau
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<AssemblyName>OpenGenesisLINK.Addons.NexTransit</AssemblyName>
|
||||
<ProjectGuid>{AF51F7E2-91D2-4801-AB77-F512A0430102}</ProjectGuid>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
</PropertyGroup>
|
||||
@@ -14,4 +15,13 @@
|
||||
<Reference Include="OpenMetaverseTypes"><HintPath>../../bin/OpenMetaverseTypes.dll</HintPath><Private>false</Private></Reference>
|
||||
<Reference Include="log4net"><HintPath>../../bin/log4net.dll</HintPath><Private>false</Private></Reference>
|
||||
</ItemGroup>
|
||||
<!-- Normal OpenSim.sln build must deposit the three independent add-in DLLs
|
||||
beside OpenSim.exe for Mono.Addins region module discovery. -->
|
||||
<Target Name="CopyAddonToSimulatorBin" AfterTargets="Build"
|
||||
Condition="'$(DesignTimeBuild)' != 'true'">
|
||||
<MakeDir Directories="$(MSBuildThisFileDirectory)../../bin" />
|
||||
<Copy SourceFiles="$(TargetPath)"
|
||||
DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"
|
||||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,5 +1,12 @@
|
||||
# NexTransit 0.1.0 – Stadt-NexVerse Linien und Fahrplananzeigen
|
||||
|
||||
## Automatischer Standard-Build (Generation 1)
|
||||
|
||||
Dieses Addon wird zusammen mit OpenGenesisLINK automatisch über `./runprebuild.sh` und `dotnet build -c Release OpenSim.sln` erstellt. Die DLL `OpenGenesisLINK.Addons.NexTransit.dll` wird dabei automatisch in `bin/` abgelegt, **ohne einen separaten Addon-Build oder Installationsschritt**. Das funktioniert auch über die automatisch erzeugte `compile.sh`. Die Build-Integration installiert keine Dateien auf fremden Servern und aktiviert das Addon nicht automatisch; `Enabled = false` bleibt die sichere Vorgabe.
|
||||
|
||||
Die vorhandenen `addon-modules/.../build.sh`-Skripte bleiben ausschließlich für gezielte Einzel-Builds und separate Simulatorinstallationen bestehen.
|
||||
|
||||
|
||||
**Eigenständiges opt-in Regionsaddon.** Konfigurierte Linien, Ziele, Taktabstände und Startminuten ergeben reproduzierbare Planabfahrten für eine bestimmte Region/Haltestellenumgebung. Das Wetter- und das alte Bus-Abfahrtstafel-Addon werden nicht verändert. Ein automatischer Bus, Echtzeit-GPS, Fahrscheinverkauf oder Teleport wird **nicht** vorgetäuscht.
|
||||
|
||||
## Einbau
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>OpenGenesisLINK.Addons.OGLWeather</AssemblyName>
|
||||
<ProjectGuid>{AF51F7E2-91D2-4801-AB77-F512A0430104}</ProjectGuid>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
||||
@@ -16,4 +17,13 @@
|
||||
<Reference Include="OpenMetaverseTypes"><HintPath>../../bin/OpenMetaverseTypes.dll</HintPath><Private>false</Private></Reference>
|
||||
<Reference Include="log4net"><HintPath>../../bin/log4net.dll</HintPath><Private>false</Private></Reference>
|
||||
</ItemGroup>
|
||||
<!-- Copy only the module assembly, never dependencies, into the normal
|
||||
simulator bin on every standard Debug or Release solution build. -->
|
||||
<Target Name="CopyAddonToSimulatorBin" AfterTargets="Build"
|
||||
Condition="'$(DesignTimeBuild)' != 'true'">
|
||||
<MakeDir Directories="$(MSBuildThisFileDirectory)../../bin" />
|
||||
<Copy SourceFiles="$(TargetPath)"
|
||||
DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"
|
||||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,5 +1,12 @@
|
||||
# OGLWeather – OpenGenesisLINK Generation 1
|
||||
|
||||
## Automatischer Standard-Build (Generation 1)
|
||||
|
||||
Dieses Addon wird zusammen mit OpenGenesisLINK automatisch über `./runprebuild.sh` und `dotnet build -c Release OpenSim.sln` erstellt. Die DLL `OpenGenesisLINK.Addons.OGLWeather.dll` wird dabei automatisch in `bin/` abgelegt, **ohne einen separaten Addon-Build oder Installationsschritt**. Das funktioniert auch über die automatisch erzeugte `compile.sh`. Die Build-Integration installiert keine Dateien auf fremden Servern und aktiviert das Addon nicht automatisch; `Enabled = false` bleibt die sichere Vorgabe.
|
||||
|
||||
Die vorhandenen `addon-modules/.../build.sh`-Skripte bleiben ausschließlich für gezielte Einzel-Builds und separate Simulatorinstallationen bestehen.
|
||||
|
||||
|
||||
**Eigenständiges Wetter-Addon (0.1.0 Dev)** für alle Regionen eines Simulatorprozesses. Ersetzt das eingestellte OGLSeasons-Projekt. Kein externer DWD-Dienst und **keine echte meteorologische Wettervorhersage**: Dies ist eine vollständig deterministische Wetter-Simulation.
|
||||
|
||||
## Funktionen
|
||||
|
||||
+11
@@ -1 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Normal Generation-1 server build includes OGLWeather and NexCity modules
|
||||
# via OpenSim.sln. No additional manual addon builds necessary.
|
||||
dotnet build -c Release OpenSim.sln
|
||||
for addon in OGLWeather NexTraffic NexTransit NexSmartLight; do
|
||||
test -s "bin/OpenGenesisLINK.Addons.${addon}.dll" || {
|
||||
echo "Missing built addon: ${addon}" >&2
|
||||
exit 1
|
||||
}
|
||||
done
|
||||
+16
-1
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
|
||||
@@ -20,7 +21,21 @@ case "$1" in
|
||||
|
||||
cp bin/System.Drawing.Common.dll.linux bin/System.Drawing.Common.dll
|
||||
dotnet bin/prebuild.dll /target vs2022 /targetframework net8_0 /excludedir = "obj | bin" /file prebuild.xml
|
||||
printf '%s\n' '#!/bin/sh' 'set -e' 'dotnet build -c Release OpenSim.sln' 'bash addon-modules/OGLAssetService/build.sh Release' 'bash addon-modules/OGLWeather/build.sh Release' > compile.sh
|
||||
# Prebuild regenerates OpenSim.sln from scratch. Keep SDK-style city
|
||||
# and the weather addon in the actual solution, not manual build steps.
|
||||
# This also makes a plain 'dotnet build OpenSim.sln' compile their DLLs.
|
||||
dotnet sln OpenSim.sln add --in-root \
|
||||
addons/NexTraffic/OpenGenesisLINK.Addons.NexTraffic.csproj \
|
||||
addons/NexTransit/OpenGenesisLINK.Addons.NexTransit.csproj \
|
||||
addons/NexSmartLight/OpenGenesisLINK.Addons.NexSmartLight.csproj \
|
||||
addons/OGLWeather/OpenGenesisLINK.Addons.OGLWeather.csproj
|
||||
printf '%s\n' \
|
||||
'#!/bin/sh' 'set -eu' \
|
||||
'dotnet build -c Release OpenSim.sln' \
|
||||
'for addon in NexTraffic NexTransit NexSmartLight OGLWeather; do' \
|
||||
' test -s "bin/OpenGenesisLINK.Addons.${addon}.dll" || { echo "Missing city addon DLL: ${addon}" >&2; exit 1; }' \
|
||||
'done' \
|
||||
'bash addon-modules/OGLAssetService/build.sh Release' > compile.sh
|
||||
chmod +x compile.sh
|
||||
|
||||
;;
|
||||
|
||||
@@ -33,6 +33,9 @@ for name, channel in zip(names, channels):
|
||||
assert f"integer CHANNEL = {channel};" in script
|
||||
assert f"OpenGenesisLINK.Addons.{name}" in csproj
|
||||
assert "net8.0" in csproj
|
||||
assert '<Target Name="CopyAddonToSimulatorBin" AfterTargets="Build"' in csproj
|
||||
assert 'DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"' in csproj
|
||||
assert "<ProjectGuid>" in csproj
|
||||
assert f"build-nex-city-addon.sh\" {name}" in wrapper, name
|
||||
assert not any(x in mod for x in (
|
||||
"AddNewPrim(", "AddNewSceneObject(", "DeleteSceneObject(",
|
||||
@@ -60,4 +63,27 @@ assert 'test -f "$TARGET/OpenSim.Region.Framework.dll"' not in builder or "robus
|
||||
assert 'dotnet build "addons/$NAME/OpenGenesisLINK.Addons.$NAME.csproj"' in builder
|
||||
assert "runprebuild.sh" in builder
|
||||
assert 'ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"' in builder
|
||||
# A plain checkout build and a regenerated solution must both compile
|
||||
# all four add-ons. CI also checks the actual bin output post-Release.
|
||||
solution = content("OpenSim.sln").replace(chr(92), "/")
|
||||
prebuild = content("runprebuild.sh")
|
||||
compile_script = content("compile.sh")
|
||||
for name in (*names, "OGLWeather"):
|
||||
target = f"OpenGenesisLINK.Addons.{name}.dll"
|
||||
project = f"addons/{name}/OpenGenesisLINK.Addons.{name}.csproj"
|
||||
assert solution.count(project) == 1, f"Missing from checked-in solution: {name}"
|
||||
assert project in prebuild, f"Missing from Prebuild regeneration: {name}"
|
||||
assert target not in solution, f"Solution should include project, not DLL: {name}"
|
||||
assert target not in compile_script or "bin/" in compile_script
|
||||
assert f'bin/OpenGenesisLINK.Addons.${{addon}}.dll' in compile_script
|
||||
assert f'<ProjectGuid>' in content(project)
|
||||
weather_project = content("addons/OGLWeather/OpenGenesisLINK.Addons.OGLWeather.csproj")
|
||||
assert 'CopyAddonToSimulatorBin' in weather_project
|
||||
assert 'DestinationFiles="$(MSBuildThisFileDirectory)../../bin/$(TargetFileName)"' in weather_project
|
||||
assert "bash addon-modules/OGLWeather/build.sh Release" not in prebuild, (
|
||||
"Weather is now in OpenSim.sln; do not double-build separately"
|
||||
)
|
||||
assert 'dotnet build -c Release OpenSim.sln' in compile_script
|
||||
print("NexCity + OGLWeather solution bundling: all 4 DLLs checked")
|
||||
|
||||
print("NexCity addon contracts PASS: independent plugins, bounded wire, safe disabled defaults")
|
||||
Reference in new issue
Block a user