@ -1,13 +1,18 @@
#!/bin/bash
set -e
FRAMEWORK = "net6.0"
PLATFORM = $1
ARCHITECTURE = " ${ 2 :- x64 } "
if [ " $PLATFORM " = "Windows" ] ; then
RUNTIME = "win-x64"
RUNTIME = " win- $ARCHITECTURE "
elif [ " $PLATFORM " = "Linux" ] ; then
RUNTIME = " linux-x64 "
RUNTIME = " linux- $ARCHITECTURE "
elif [ " $PLATFORM " = "Mac" ] ; then
RUNTIME = " osx-x64 "
RUNTIME = " osx- $ARCHITECTURE "
else
echo "Platform must be provided as first argu e ment: Windows, Linux or Mac"
echo "Platform must be provided as first argu ment: Windows, Linux or Mac"
exit 1
fi
@ -35,7 +40,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/Lidarr.Api.V1/openapi.json " $outputFolder / net6.0 /$RUNTIME / $application " v1 &
dotnet tool run swagger tofile --output ./src/Lidarr.Api.V1/openapi.json " $outputFolder / $FRAMEWORK /$RUNTIME / $application " v1 &
sleep 45