mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-08 16:53:04 +01:00
docs: use application specific to platform
This commit is contained in:
parent
df2b529d01
commit
218d92a1ac
1 changed files with 7 additions and 1 deletions
8
docs.sh
8
docs.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue