拼写错误修改

This commit is contained in:
陈国伟 2021-11-12 09:20:09 +08:00
parent 1fc925b7bd
commit 004b55c728
4 changed files with 9 additions and 6 deletions

View File

@ -2,7 +2,7 @@
namespace FastGithub.HttpServer
{
class CaCertInstallerOfLinuxDebain : CaCertInstallerOfLinux
class CaCertInstallerOfLinuxDebian : CaCertInstallerOfLinux
{
public override string RootCertPath => "/usr/local/share/ca-certificates";
@ -14,7 +14,7 @@ namespace FastGithub.HttpServer
/// <returns></returns>
public override bool IsSupported()
{
return OperatingSystem.IsLinux() && base.IsReleasName("Debain");
return OperatingSystem.IsLinux() && base.IsReleasName("Debian");
}
}
}

View File

@ -2,7 +2,7 @@
namespace FastGithub.HttpServer
{
sealed class CaCertInstallerOfLinuxUbuntu : CaCertInstallerOfLinuxDebain
sealed class CaCertInstallerOfLinuxUbuntu : CaCertInstallerOfLinuxDebian
{
/// <summary>
/// 是否支持

View File

@ -21,7 +21,7 @@ namespace FastGithub
.AddSingleton<ICaCertInstaller, CaCertInstallerOfMacOS>()
.AddSingleton<ICaCertInstaller, CaCertInstallerOfWindows>()
.AddSingleton<ICaCertInstaller, CaCertInstallerOfLinuxCentOS>()
.AddSingleton<ICaCertInstaller, CaCertInstallerOfLinuxDebain>()
.AddSingleton<ICaCertInstaller, CaCertInstallerOfLinuxDebian>()
.AddSingleton<ICaCertInstaller, CaCertInstallerOfLinuxUbuntu>()
.AddSingleton<HttpProxyMiddleware>()
.AddSingleton<RequestLoggingMiddleware>()

View File

@ -1,4 +1,7 @@
set output=./publish
if exist "%output%" rd /S /Q "%output%"
dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=false --self-contained -r linux-x64 -o "%output%/fastgithub_linux-x64" ./FastGithub/FastGithub.csproj
dotnet publish -c Release -o "%output%/fastgithub_win-x64" ./FastGithub.UI/FastGithub.UI.csproj
dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true --self-contained -r win-x64 -o "%output%/fastgithub_win-x64" ./FastGithub/FastGithub.csproj
dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true --self-contained -r linux-x64 -o "%output%/fastgithub_linux-x64" ./FastGithub/FastGithub.csproj
dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true --self-contained -r linux-arm64 -o "%output%/fastgithub_linux-arm64" ./FastGithub/FastGithub.csproj
dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true --self-contained -r osx-x64 -o "%output%/fastgithub_osx-x64" ./FastGithub/FastGithub.csproj