forked from MonoGame/docs.monogame.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
24 lines (18 loc) · 915 Bytes
/
build.sh
File metadata and controls
24 lines (18 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
FRAMEWORK_DLL="external/MonoGame/Artifacts/MonoGame.Framework/DesktopGL/Debug/MonoGame.Framework.dll"
PIPELINE_DLL="external/MonoGame/Artifacts/MonoGame.Framework.Content.Pipeline/Debug/MonoGame.Framework.Content.Pipeline.dll"
# Check if submodules are initialized
if git submodule status | grep -q '^-'; then
echo "Submodules not initialized. Running git submodule update..."
git submodule update --init --recursive
fi
# Check if dlls are already built
if [ ! -f "$FRAMEWORK_DLL" ] || [ ! -f "$PIPELINE_DLL" ]; then
echo "Required Assemblies for documentation not found. Building assemblies..."
dotnet build external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj -p:DisableNativeBuild=true
fi
# Build documentation
echo "Building DocFx..."
dotnet docfx docfx.json
echo "Build and documentation generation completed successfully!"