Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>SixLaborsCaptcha.Core</AssemblyName>
<RootNamespace>SixLaborsCaptcha.Core</RootNamespace>
<Version>1.0.0</Version>
<RepositoryUrl>https://github.com/aliasadidev/SixLaborsCaptcha</RepositoryUrl>
<PackageDescription>Generate captcha with SixLabors' libraries on .NET Core (run in both Windows and Linux environments)</PackageDescription>
<PackageId>Mii.SixLaborsCaptcha.Core</PackageId>
<AssemblyName>Mii.SixLaborsCaptcha.Core</AssemblyName>
<RootNamespace>Mii.SixLaborsCaptcha.Core</RootNamespace>
<Version>1.0.5</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryUrl>https://github.com/firstyuyu/SixLaborsCaptcha</RepositoryUrl>
<PackageDescription>Forked the original repository to address vulnerable dependencies</PackageDescription>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.3" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.7" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.4" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="../../README.md" Pack="true" PackagePath="/" />
</ItemGroup>
</Project>
22 changes: 22 additions & 0 deletions src/SixLaborsCaptcha.Core/publish.sh
Original file line number Diff line number Diff line change
@@ -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 '<Version>' | 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 ../..
14 changes: 9 additions & 5 deletions src/SixLaborsCaptcha.Mvc.Core/SixLaborsCaptcha.Mvc.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.0</Version>
<RepositoryUrl>https://github.com/aliasadidev/SixLaborsCaptcha</RepositoryUrl>
<PackageDescription>Generate captcha with SixLabors' libraries on ASP.NET Core MVC (run in both Windows and Linux environments)</PackageDescription>
<PackageId>Mii.SixLaborsCaptcha.Mvc.Core</PackageId>
<Version>1.0.5</Version>
<AssemblyName>Mii.SixLaborsCaptcha.Mvc.Core</AssemblyName>
<RootNamespace>Mii.SixLaborsCaptcha.Mvc.Core</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryUrl>https://github.com/firstyuyu/SixLaborsCaptcha</RepositoryUrl>
<PackageDescription>Forked the original repository to address vulnerable dependencies</PackageDescription>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.*" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SixLaborsCaptcha.Core\SixLaborsCaptcha.Core.csproj" />
<ProjectReference Include="../SixLaborsCaptcha.Core/SixLaborsCaptcha.Core.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="../../README.md" Pack="true" PackagePath="/" />
</ItemGroup>
</Project>
22 changes: 22 additions & 0 deletions src/SixLaborsCaptcha.Mvc.Core/publish.sh
Original file line number Diff line number Diff line change
@@ -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 '<Version>' | 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 ../..