Explorar o código

发布脚本放到解决方案根目录

xljiulang %!s(int64=4) %!d(string=hai) anos
pai
achega
49c21111fb

+ 26 - 29
FastGithub.DomainResolve/FastGithub.DomainResolve.csproj

@@ -1,37 +1,34 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
-  <ItemGroup>
-    <PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.0-*" />
-    <PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0-*" />
-    <PackageReference Include="DNS" Version="6.1.0" />
-  </ItemGroup>
+	<ItemGroup>
+		<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.0-*" />
+		<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0-*" />
+		<PackageReference Include="DNS" Version="6.1.0" />
+		<ProjectReference Include="..\FastGithub.Configuration\FastGithub.Configuration.csproj" />
+	</ItemGroup>
 
-  <ItemGroup>
-    <None Include="../@dnscrypt-proxy/dnscrypt-proxy.toml" Link="dnscrypt-proxy.toml">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
+	<ItemGroup>
+		<None Include="../@dnscrypt-proxy/dnscrypt-proxy.toml" Link="dnscrypt-proxy.toml">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+	</ItemGroup>
 
-  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
-    <None Include="../@dnscrypt-proxy/windows-x64/dnscrypt-proxy.exe" Link="dnscrypt-proxy.exe">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
+	<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
+		<None Include="../@dnscrypt-proxy/windows-x64/dnscrypt-proxy.exe" Link="dnscrypt-proxy.exe">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+	</ItemGroup>
 
-  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
-    <None Include="../@dnscrypt-proxy/linux-x64/dnscrypt-proxy" Link="dnscrypt-proxy">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
+	<ItemGroup Condition="'$(RuntimeIdentifier)' == 'linux-x64'">
+		<None Include="../@dnscrypt-proxy/linux-x64/dnscrypt-proxy" Link="dnscrypt-proxy">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+	</ItemGroup>
 
-  <ItemGroup Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
-    <None Include="../@dnscrypt-proxy/osx-x64/dnscrypt-proxy" Link="dnscrypt-proxy">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="..\FastGithub.Configuration\FastGithub.Configuration.csproj" />
-  </ItemGroup>
+	<ItemGroup Condition="'$(RuntimeIdentifier)' == 'osx-x64'">
+		<None Include="../@dnscrypt-proxy/osx-x64/dnscrypt-proxy" Link="dnscrypt-proxy">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+	</ItemGroup>
 
 </Project>

+ 0 - 12
FastGithub/.config/dotnet-tools.json

@@ -1,12 +0,0 @@
-{
-  "version": 1,
-  "isRoot": true,
-  "tools": {
-    "dotnet-ef": {
-      "version": "5.0.8",
-      "commands": [
-        "dotnet-ef"
-      ]
-    }
-  }
-}

+ 21 - 24
FastGithub/FastGithub.csproj

@@ -1,30 +1,27 @@
 <Project Sdk="Microsoft.NET.Sdk.Web">
 
-  <PropertyGroup>
-    <OutputType>Exe</OutputType>
-    <TargetFramework>net6.0</TargetFramework>
-    <PackageLicenseExpression>MIT</PackageLicenseExpression>
-    <IsWebConfigTransformDisabled>true</IsWebConfigTransformDisabled>
-    <ApplicationIcon>app.ico</ApplicationIcon>
-    <ApplicationManifest>app.manifest</ApplicationManifest>
-  </PropertyGroup>
+	<PropertyGroup>
+		<OutputType>Exe</OutputType>
+		<TargetFramework>net6.0</TargetFramework>
+		<PackageLicenseExpression>MIT</PackageLicenseExpression>
+		<IsWebConfigTransformDisabled>true</IsWebConfigTransformDisabled>
+		<ApplicationIcon>app.ico</ApplicationIcon>
+		<ApplicationManifest>app.manifest</ApplicationManifest>
+		<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
+	</PropertyGroup>
 
-  <PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
-    <EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
-  </PropertyGroup>
+	<ItemGroup>
+		<PackageReference Include="PInvoke.AdvApi32" Version="0.7.104" />
+		<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.1" />
+		<ProjectReference Include="..\FastGithub.Dns\FastGithub.Dns.csproj" />
+		<ProjectReference Include="..\FastGithub.DomainResolve\FastGithub.DomainResolve.csproj" />
+		<ProjectReference Include="..\FastGithub.ReverseProxy\FastGithub.ReverseProxy.csproj" />
+	</ItemGroup>
 
-  <ItemGroup>
-    <PackageReference Include="PInvoke.AdvApi32" Version="0.7.104" />
-    <PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.1" />
-    <ProjectReference Include="..\FastGithub.Dns\FastGithub.Dns.csproj" />
-    <ProjectReference Include="..\FastGithub.DomainResolve\FastGithub.DomainResolve.csproj" />
-    <ProjectReference Include="..\FastGithub.ReverseProxy\FastGithub.ReverseProxy.csproj" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <None Update="appsettings.*">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None> 
-  </ItemGroup>
+	<ItemGroup>
+		<None Update="appsettings.*">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+	</ItemGroup>
 
 </Project>

+ 1 - 1
FastGithub/pack.sh → pack.sh

@@ -1,5 +1,5 @@
 #! /bin/bash
-cd ./bin/publish
+cd ./FastGithub/bin/publish
 
 # linux-x64
 chmod 777 ./linux-x64/dnscrypt-proxy

+ 1 - 0
FastGithub/publish.cmd → publish.cmd

@@ -1,3 +1,4 @@
+cd ./FastGithub
 set output=./bin/publish
 if exist "%output%" rd /S /Q "%output%"
 dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -r win-x64 -o "%output%/win-x64"