diff --git a/FastGithub.HttpServer/CaCertInstallerOfLinuxDebain.cs b/FastGithub.HttpServer/CaCertInstallerOfLinuxDebian.cs similarity index 85% rename from FastGithub.HttpServer/CaCertInstallerOfLinuxDebain.cs rename to FastGithub.HttpServer/CaCertInstallerOfLinuxDebian.cs index eb016d4..3a7cf08 100644 --- a/FastGithub.HttpServer/CaCertInstallerOfLinuxDebain.cs +++ b/FastGithub.HttpServer/CaCertInstallerOfLinuxDebian.cs @@ -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 /// public override bool IsSupported() { - return OperatingSystem.IsLinux() && base.IsReleasName("Debain"); + return OperatingSystem.IsLinux() && base.IsReleasName("Debian"); } } } \ No newline at end of file diff --git a/FastGithub.HttpServer/CaCertInstallerOfLinuxUbuntu.cs b/FastGithub.HttpServer/CaCertInstallerOfLinuxUbuntu.cs index c94bd4b..d94b3e1 100644 --- a/FastGithub.HttpServer/CaCertInstallerOfLinuxUbuntu.cs +++ b/FastGithub.HttpServer/CaCertInstallerOfLinuxUbuntu.cs @@ -2,7 +2,7 @@ namespace FastGithub.HttpServer { - sealed class CaCertInstallerOfLinuxUbuntu : CaCertInstallerOfLinuxDebain + sealed class CaCertInstallerOfLinuxUbuntu : CaCertInstallerOfLinuxDebian { /// /// 是否支持 diff --git a/FastGithub.HttpServer/ServiceCollectionExtensions.cs b/FastGithub.HttpServer/ServiceCollectionExtensions.cs index 1224460..bc62f62 100644 --- a/FastGithub.HttpServer/ServiceCollectionExtensions.cs +++ b/FastGithub.HttpServer/ServiceCollectionExtensions.cs @@ -21,7 +21,7 @@ namespace FastGithub .AddSingleton() .AddSingleton() .AddSingleton() - .AddSingleton() + .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() diff --git a/publish.cmd b/publish.cmd index 958ab82..b906076 100644 --- a/publish.cmd +++ b/publish.cmd @@ -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 \ No newline at end of file +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 \ No newline at end of file