1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Fix builds with v5 API

This commit is contained in:
Mark McDowall
2025-01-29 20:14:22 -08:00
parent a72bc164a9
commit 2fd1fea4cb
3 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ set -e
FRAMEWORK="net8.0"
PLATFORM=$1
ARCHITECTURE="${2:-'default value'}"
ARCHITECTURE="${2:-x64}"
if [ "$PLATFORM" = "Windows" ]; then
RUNTIME="win-$ARCHITECTURE"
@@ -37,7 +37,7 @@ dotnet clean $slnFile -c Release
dotnet msbuild -restore $slnFile -p:Configuration=Debug -p:Platform=$platform -p:RuntimeIdentifiers=$RUNTIME -t:PublishAllRids
# dotnet new tool-manifests
dotnet new tool-manifest
dotnet tool install --version 6.6.2 Swashbuckle.AspNetCore.Cli
dotnet tool run swagger tofile --output ./src/Sonarr.Api.V5/openapi.json "$outputFolder/$FRAMEWORK/$RUNTIME/$application" v5 &