Browse Source

拼写错误修改

陈国伟 3 years ago
parent
commit
004b55c728

+ 2 - 2
FastGithub.HttpServer/CaCertInstallerOfLinuxDebain.cs → 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
         /// <returns></returns>
         public override bool IsSupported()
         {
-            return OperatingSystem.IsLinux() && base.IsReleasName("Debain");
+            return OperatingSystem.IsLinux() && base.IsReleasName("Debian");
         }
     }
 }

+ 1 - 1
FastGithub.HttpServer/CaCertInstallerOfLinuxUbuntu.cs

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

+ 1 - 1
FastGithub.HttpServer/ServiceCollectionExtensions.cs

@@ -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>()

+ 5 - 2
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 
+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