From 566930208b7d8038986424dec67dfe4fc2ae3b86 Mon Sep 17 00:00:00 2001
From: xljiulang <366193849@qq.com>
Date: Thu, 29 Jul 2021 20:49:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0.net5=E5=8F=91=E5=B8=83?=
=?UTF-8?q?=E4=BB=A5=E6=94=AF=E6=8C=81win7=20#16?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Directory.Build.props | 2 +-
.../FastGithub.Configuration.csproj | 4 +-
FastGithub.Dns/FastGithub.Dns.csproj | 6 +-
.../FastGithub.DomainResolve.csproj | 4 +-
FastGithub/FastGithub.csproj | 64 ++++++++++---------
pack.sh | 7 +-
publish.cmd | 7 +-
7 files changed, 50 insertions(+), 44 deletions(-)
diff --git a/Directory.Build.props b/Directory.Build.props
index 1bb5d48..923f798 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,7 +5,7 @@
github加速神器
https://github.com/dotnetcore/FastGithub
win-x64
- net6.0
+ net5.0;net6.0
diff --git a/FastGithub.Configuration/FastGithub.Configuration.csproj b/FastGithub.Configuration/FastGithub.Configuration.csproj
index 79384a7..94918f0 100644
--- a/FastGithub.Configuration/FastGithub.Configuration.csproj
+++ b/FastGithub.Configuration/FastGithub.Configuration.csproj
@@ -1,8 +1,8 @@
-
-
+
+
diff --git a/FastGithub.Dns/FastGithub.Dns.csproj b/FastGithub.Dns/FastGithub.Dns.csproj
index 506a110..ea1d4dc 100644
--- a/FastGithub.Dns/FastGithub.Dns.csproj
+++ b/FastGithub.Dns/FastGithub.Dns.csproj
@@ -1,15 +1,15 @@
-
+
true
-
+
-
+
diff --git a/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj b/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj
index f830f74..c2b7f55 100644
--- a/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj
+++ b/FastGithub.DomainResolve/FastGithub.DomainResolve.csproj
@@ -1,8 +1,8 @@
-
-
+
+
diff --git a/FastGithub/FastGithub.csproj b/FastGithub/FastGithub.csproj
index df75c60..0ce188b 100644
--- a/FastGithub/FastGithub.csproj
+++ b/FastGithub/FastGithub.csproj
@@ -1,39 +1,41 @@
-
- Exe
- net6.0
- MIT
- true
- app.ico
- app.manifest
- true
-
+
+ Exe
+ MIT
+ true
+ app.ico
+ app.manifest
+
-
-
-
-
-
-
-
+
+ true
+
-
-
- PreserveNewest
-
-
+
+
+
+
+
+
+
-
-
- PreserveNewest
-
-
+
+
+ PreserveNewest
+
+
-
-
- PreserveNewest
-
-
+
+
+ PreserveNewest
+
+
+
+
+
+ PreserveNewest
+
+
diff --git a/pack.sh b/pack.sh
index 844ebc3..3a06b2e 100644
--- a/pack.sh
+++ b/pack.sh
@@ -11,5 +11,8 @@ chmod 777 ./osx-x64/dnscrypt-proxy
chmod 777 ./osx-x64/FastGithub
zip -r osx-x64.zip osx-x64
-# windows-x64
-zip -r win-x64.zip win-x64 -x "./win-x64/aspnetcorev2_inprocess.dll"
\ No newline at end of file
+# win10-x64
+zip -r win10-x64.zip win10-x64 -x "./win-x64/aspnetcorev2_inprocess.dll"
+
+# win7-x64
+zip -r win7-x64.zip win7-x64
\ No newline at end of file
diff --git a/publish.cmd b/publish.cmd
index e6d5929..bc38a1d 100644
--- a/publish.cmd
+++ b/publish.cmd
@@ -1,6 +1,7 @@
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"
-dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -r linux-x64 -o "%output%/linux-x64"
-dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -r osx-x64 -o "%output%/osx-x64"
\ No newline at end of file
+dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -f net6.0 -r win-x64 -o "%output%/win10-x64"
+dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=false -f net5.0 -r win-x64 -o "%output%/win7-x64"
+dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -f net6.0 -r linux-x64 -o "%output%/linux-x64"
+dotnet publish -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true -f net6.0 -r osx-x64 -o "%output%/osx-x64"
\ No newline at end of file