diff --git a/src/SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj b/src/SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj index a938e1e..4830848 100644 --- a/src/SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj +++ b/src/SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj @@ -1,18 +1,20 @@ net6.0 - SixLaborsCaptcha.Core - SixLaborsCaptcha.Core - 1.0.0 - https://github.com/aliasadidev/SixLaborsCaptcha - Generate captcha with SixLabors' libraries on .NET Core (run in both Windows and Linux environments) + Mii.SixLaborsCaptcha.Core + Mii.SixLaborsCaptcha.Core + Mii.SixLaborsCaptcha.Core + 1.0.5 + true + https://github.com/firstyuyu/SixLaborsCaptcha + Forked the original repository to address vulnerable dependencies README.md - - + + - + diff --git a/src/SixLaborsCaptcha.Core/publish.sh b/src/SixLaborsCaptcha.Core/publish.sh new file mode 100755 index 0000000..adc6424 --- /dev/null +++ b/src/SixLaborsCaptcha.Core/publish.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PROJECT_NAME=SixLaborsCaptcha.Core + +PAKCAGE_ID=$(cat $PROJECT_NAME.csproj | egrep 'PackageId' | sed -E 's/^.+<.+>([^<]+).+/\1/g') +VERSION=$(cat $PROJECT_NAME.csproj | egrep '' | sed -E 's/^.+<.+>([^<]+).+/\1/g') + +echo "NuGet API Key: " +read -s API_KEY + +echo "Building the project..." +dotnet build --configuration Release + +if [[ $? -gt 0 ]]; then + exit $? +fi + +echo "" +echo "Publishing the library to NuGet" +cd bin/Release +dotnet nuget push "$PAKCAGE_ID.$VERSION.nupkg" -k $API_KEY -s https://api.nuget.org/v3/index.json +cd ../.. \ No newline at end of file diff --git a/src/SixLaborsCaptcha.Mvc.Core/SixLaborsCaptcha.Mvc.Core.csproj b/src/SixLaborsCaptcha.Mvc.Core/SixLaborsCaptcha.Mvc.Core.csproj index 3cea7a3..a21c9f0 100644 --- a/src/SixLaborsCaptcha.Mvc.Core/SixLaborsCaptcha.Mvc.Core.csproj +++ b/src/SixLaborsCaptcha.Mvc.Core/SixLaborsCaptcha.Mvc.Core.csproj @@ -1,9 +1,13 @@ net6.0 - 1.0.0 - https://github.com/aliasadidev/SixLaborsCaptcha - Generate captcha with SixLabors' libraries on ASP.NET Core MVC (run in both Windows and Linux environments) + Mii.SixLaborsCaptcha.Mvc.Core + 1.0.5 + Mii.SixLaborsCaptcha.Mvc.Core + Mii.SixLaborsCaptcha.Mvc.Core + true + https://github.com/firstyuyu/SixLaborsCaptcha + Forked the original repository to address vulnerable dependencies README.md @@ -11,9 +15,9 @@ - + - + diff --git a/src/SixLaborsCaptcha.Mvc.Core/publish.sh b/src/SixLaborsCaptcha.Mvc.Core/publish.sh new file mode 100755 index 0000000..5e7d35b --- /dev/null +++ b/src/SixLaborsCaptcha.Mvc.Core/publish.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PROJECT_NAME=SixLaborsCaptcha.Mvc.Core + +PAKCAGE_ID=$(cat $PROJECT_NAME.csproj | egrep 'PackageId' | sed -E 's/^.+<.+>([^<]+).+/\1/g') +VERSION=$(cat $PROJECT_NAME.csproj | egrep '' | sed -E 's/^.+<.+>([^<]+).+/\1/g') + +echo "NuGet API Key: " +read -s API_KEY + +echo "Building the project..." +dotnet build --configuration Release + +if [[ $? -gt 0 ]]; then + exit $? +fi + +echo "" +echo "Publishing the library to NuGet" +cd bin/Release +dotnet nuget push "$PAKCAGE_ID.$VERSION.nupkg" -k $API_KEY -s https://api.nuget.org/v3/index.json +cd ../.. \ No newline at end of file