|
|
|
@ -21,6 +21,12 @@ slnFile=src/Prowlarr.sln
|
|
|
|
|
|
|
|
|
|
platform=Posix
|
|
|
|
|
|
|
|
|
|
if [ "$PLATFORM" = "Windows" ]; then
|
|
|
|
|
application=Prowlarr.Console.dll
|
|
|
|
|
else
|
|
|
|
|
application=Prowlarr.dll
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
dotnet clean $slnFile -c Debug
|
|
|
|
|
dotnet clean $slnFile -c Release
|
|
|
|
|
|
|
|
|
@ -29,7 +35,7 @@ dotnet msbuild -restore $slnFile -p:Configuration=Debug -p:Platform=$platform -p
|
|
|
|
|
dotnet new tool-manifest
|
|
|
|
|
dotnet tool install --version 6.6.2 Swashbuckle.AspNetCore.Cli
|
|
|
|
|
|
|
|
|
|
dotnet tool run swagger tofile --output ./src/Prowlarr.Api.V1/openapi.json "$outputFolder/net6.0/$RUNTIME/Prowlarr.dll" v1 &
|
|
|
|
|
dotnet tool run swagger tofile --output ./src/Prowlarr.Api.V1/openapi.json "$outputFolder/net6.0/$RUNTIME/$application" v1 &
|
|
|
|
|
|
|
|
|
|
sleep 30
|
|
|
|
|
|
|
|
|
|