diff --git a/src/.vs/GeneralUpdate/DesignTimeBuild/.dtbcache.v2 b/src/.vs/GeneralUpdate/DesignTimeBuild/.dtbcache.v2
index a1aa46d7d5172af6a3b88386bff77b25eda2374d..c4487f91527c37cd2a1c214031700a5d14821694 100644
Binary files a/src/.vs/GeneralUpdate/DesignTimeBuild/.dtbcache.v2 and b/src/.vs/GeneralUpdate/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/6b23afbd-2f9a-4306-b242-056621ec929a.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/6b23afbd-2f9a-4306-b242-056621ec929a.vsidx
new file mode 100644
index 0000000000000000000000000000000000000000..cf731c14c35a09148f34cf7d5311be4a03342005
Binary files /dev/null and b/src/.vs/GeneralUpdate/FileContentIndex/6b23afbd-2f9a-4306-b242-056621ec929a.vsidx differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/6bcd808e-f6d1-4347-b290-4ce6319dadba.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/6bcd808e-f6d1-4347-b290-4ce6319dadba.vsidx
deleted file mode 100644
index 9bccb941d966203188fdaae7a4b2d2b4fafa89af..0000000000000000000000000000000000000000
Binary files a/src/.vs/GeneralUpdate/FileContentIndex/6bcd808e-f6d1-4347-b290-4ce6319dadba.vsidx and /dev/null differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/77172633-2739-432b-80ae-18ccc4e33b77.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/77172633-2739-432b-80ae-18ccc4e33b77.vsidx
new file mode 100644
index 0000000000000000000000000000000000000000..9fb13c91c1fdcaaf880e0eebceb1953aab97db66
Binary files /dev/null and b/src/.vs/GeneralUpdate/FileContentIndex/77172633-2739-432b-80ae-18ccc4e33b77.vsidx differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/7c25f3cb-57ca-4ded-99d6-722ef675ba6e.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/7c25f3cb-57ca-4ded-99d6-722ef675ba6e.vsidx
new file mode 100644
index 0000000000000000000000000000000000000000..152bde02836d8e7acfd8165006c79b4d62bdc0ab
Binary files /dev/null and b/src/.vs/GeneralUpdate/FileContentIndex/7c25f3cb-57ca-4ded-99d6-722ef675ba6e.vsidx differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/d7fe8368-8bbe-45ff-acd3-285139aaa8c8.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/d7fe8368-8bbe-45ff-acd3-285139aaa8c8.vsidx
deleted file mode 100644
index 63f142ecdbf759d9ffc2c0a9afe958e572da5dbd..0000000000000000000000000000000000000000
Binary files a/src/.vs/GeneralUpdate/FileContentIndex/d7fe8368-8bbe-45ff-acd3-285139aaa8c8.vsidx and /dev/null differ
diff --git a/src/.vs/GeneralUpdate/FileContentIndex/dbfaa5a7-3a3e-4678-b4c0-dea20ccba18a.vsidx b/src/.vs/GeneralUpdate/FileContentIndex/dbfaa5a7-3a3e-4678-b4c0-dea20ccba18a.vsidx
new file mode 100644
index 0000000000000000000000000000000000000000..4556f911c077e7b4a1b4dba17b540287a9af4118
Binary files /dev/null and b/src/.vs/GeneralUpdate/FileContentIndex/dbfaa5a7-3a3e-4678-b4c0-dea20ccba18a.vsidx differ
diff --git a/src/.vs/GeneralUpdate/config/applicationhost.config b/src/.vs/GeneralUpdate/config/applicationhost.config
new file mode 100644
index 0000000000000000000000000000000000000000..cdd2df8fe1edaf5831e6f1ed619f30e1875d0443
--- /dev/null
+++ b/src/.vs/GeneralUpdate/config/applicationhost.config
@@ -0,0 +1,1026 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/.vs/GeneralUpdate/v17/.futdcache.v1 b/src/.vs/GeneralUpdate/v17/.futdcache.v1
index 1357be55c88f8258207d43df6b2d756c440f3303..c42fab8ebca455a0cd9f1e226bc9989adf2ae392 100644
Binary files a/src/.vs/GeneralUpdate/v17/.futdcache.v1 and b/src/.vs/GeneralUpdate/v17/.futdcache.v1 differ
diff --git a/src/.vs/ProjectEvaluation/generalupdate.metadata.v2 b/src/.vs/ProjectEvaluation/generalupdate.metadata.v2
index 5e89472998dd859b26c10f312610d36fb6993a5d..e2b77df171e210e583106724c8179305cada6703 100644
Binary files a/src/.vs/ProjectEvaluation/generalupdate.metadata.v2 and b/src/.vs/ProjectEvaluation/generalupdate.metadata.v2 differ
diff --git a/src/.vs/ProjectEvaluation/generalupdate.projects.v2 b/src/.vs/ProjectEvaluation/generalupdate.projects.v2
index f17cd7aa3fcc24c0ba820cad8f25c208f0338872..0abbd14b9b69e45a777364e6e896204693122490 100644
Binary files a/src/.vs/ProjectEvaluation/generalupdate.projects.v2 and b/src/.vs/ProjectEvaluation/generalupdate.projects.v2 differ
diff --git a/src/AutoUpdate.Differential/App.xaml b/src/AutoUpdate.Differential/App.xaml
index 97c196f4e28818130c51e8d11eee0f02b947b8e6..4842651522798eae470ad28e93764c4e8feb5d52 100644
--- a/src/AutoUpdate.Differential/App.xaml
+++ b/src/AutoUpdate.Differential/App.xaml
@@ -1,9 +1,7 @@
-
-
+
\ No newline at end of file
diff --git a/src/AutoUpdate.Differential/App.xaml.cs b/src/AutoUpdate.Differential/App.xaml.cs
index 920ca532325520413d4ab6b6eb6dcbdcc0a70415..f6b578a014e5744f2bd54e49ea566967b391afc8 100644
--- a/src/AutoUpdate.Differential/App.xaml.cs
+++ b/src/AutoUpdate.Differential/App.xaml.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
+using System.Windows;
namespace AutoUpdate.Differential
{
@@ -14,4 +8,4 @@ namespace AutoUpdate.Differential
public partial class App : Application
{
}
-}
+}
\ No newline at end of file
diff --git a/src/AutoUpdate.Differential/AssemblyInfo.cs b/src/AutoUpdate.Differential/AssemblyInfo.cs
index 22112342ead3cc40cbd4be95b3f91a26277f5989..bfbf6e201ec7acf337b0164fbf261a446bcb9e1e 100644
--- a/src/AutoUpdate.Differential/AssemblyInfo.cs
+++ b/src/AutoUpdate.Differential/AssemblyInfo.cs
@@ -1,10 +1,10 @@
using System.Windows;
-[assembly:ThemeInfo(
+[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
-)]
+)]
\ No newline at end of file
diff --git a/src/AutoUpdate.Differential/MainWindow.xaml b/src/AutoUpdate.Differential/MainWindow.xaml
index d3afc140bdcd9774238d0cc16030b204de71dff2..7643a7e7b47ef9056bdc5cde98f545817b4710d5 100644
--- a/src/AutoUpdate.Differential/MainWindow.xaml
+++ b/src/AutoUpdate.Differential/MainWindow.xaml
@@ -1,17 +1,16 @@
-
+
-
+
\ No newline at end of file
diff --git a/src/AutoUpdate.Differential/MainWindow.xaml.cs b/src/AutoUpdate.Differential/MainWindow.xaml.cs
index cd8afd875e26ac046b13f15fad039fb08d01d9d0..44363aa64f36c2349c4f37a0aebda1d7a8d8e868 100644
--- a/src/AutoUpdate.Differential/MainWindow.xaml.cs
+++ b/src/AutoUpdate.Differential/MainWindow.xaml.cs
@@ -1,19 +1,7 @@
using GeneralUpdate.Differential;
using GeneralUpdate.Differential.Config;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
using System.Threading.Tasks;
using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
namespace AutoUpdate.Differential
{
@@ -67,4 +55,4 @@ namespace AutoUpdate.Differential
});
}
}
-}
+}
\ No newline at end of file
diff --git a/src/AutoUpdate.ZIP/MainWindow.xaml.cs b/src/AutoUpdate.ZIP/MainWindow.xaml.cs
index 89b621730b50a1f6ceaeb36f1f59ba84f01873b9..acf301b86887d95ebc2504530e987cceddaff632 100644
--- a/src/AutoUpdate.ZIP/MainWindow.xaml.cs
+++ b/src/AutoUpdate.ZIP/MainWindow.xaml.cs
@@ -31,7 +31,7 @@ namespace AutoUpdate.ZIP
{
var factory = new GeneralZipFactory();
factory.CompressProgress += OnCompressProgress;
- //压缩该路径下所有的文件:D:\Updatetest_hub\Run_app , D:\Updatetest_hub
+ //Compress all files in this path:D:\Updatetest_hub\Run_app , D:\Updatetest_hub
factory.CreatefOperate(GetOperationType(), TxtZipPath.Text, TxtUnZipPath.Text).
CreatZip();
}
@@ -53,7 +53,7 @@ namespace AutoUpdate.ZIP
var factory = new GeneralZipFactory();
factory.UnZipProgress += OnUnZipProgress;
factory.Completed += OnCompleted;
- //解压文件包:D:\Updatetest_hub\Run_app\1.zip , D:\Updatetest_hub
+ //D:\Updatetest_hub\Run_app\1.zip , D:\Updatetest_hub
factory.CreatefOperate(GetOperationType(), TxtZipPath.Text, TxtUnZipPath.Text, true).
UnZip();
}
diff --git a/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj b/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj
index fb37e5e8fb98039df3e869778b4efb7e9f59898a..b192c416ebe64f1df67a878f4181d367b23edff5 100644
--- a/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj
+++ b/src/GeneralUpdate.AspNetCore/GeneralUpdate.AspNetCore.csproj
@@ -1,9 +1,23 @@
-
+
netstandard2.0
+ GeneralUpdate.ico
+ Snipaste_128.png
+ True
+ 1.1.0.0
+ 1.1.0.0
+ 1.1.0
+ https://github.com/WELL-E/AutoUpdater
+ Copyright © 2022
+ Provide update information proofreading and download update package services.
+ juster.zhu
+
+
+
+
@@ -17,6 +31,10 @@
+
+
+
+
@@ -27,4 +45,11 @@
+
+
+ True
+ \
+
+
+
diff --git a/src/GeneralUpdate.AspNetCore/GeneralUpdate.ico b/src/GeneralUpdate.AspNetCore/GeneralUpdate.ico
new file mode 100644
index 0000000000000000000000000000000000000000..7cb4a86c1bbf84baf7b783ab21b4a7e1cf700455
Binary files /dev/null and b/src/GeneralUpdate.AspNetCore/GeneralUpdate.ico differ
diff --git a/src/GeneralUpdate.AspNetCore/Services/GeneralUpdateService.cs b/src/GeneralUpdate.AspNetCore/Services/GeneralUpdateService.cs
index 33a86533a372c0d9f90c5cabf0d02e68b830d5be..8e521fb6a9d7d5c989637aad53b2a301c830738f 100644
--- a/src/GeneralUpdate.AspNetCore/Services/GeneralUpdateService.cs
+++ b/src/GeneralUpdate.AspNetCore/Services/GeneralUpdateService.cs
@@ -88,6 +88,12 @@ namespace GeneralUpdate.AspNetCore.Services
return JsonConvert.SerializeObject(respDTO);
}
+ ///
+ /// TODO: To be perfected, not available.
+ ///
+ ///
+ ///
+ ///
public async Task UploadPatchPacket(HttpContext context, Func insertLastVserion)
{
//file root dir path 文件保存目录路径
@@ -151,18 +157,9 @@ namespace GeneralUpdate.AspNetCore.Services
private void ParameterVerification(int clientType, string clientVersion, string serverLastVersion)
{
- if (clientType == 0)
- {
- throw new Exception(@"'clientType' cannot both be 0!");
- }
- else if (string.IsNullOrWhiteSpace(clientVersion))
- {
- throw new ArgumentNullException(@"'clientVersion' cannot be null!");
- }
- else if (string.IsNullOrWhiteSpace(serverLastVersion))
- {
- throw new ArgumentNullException(@"'serverLastVersion' cannot be null!");
- }
+ if (clientType <= 0) throw new Exception(@"'clientType' cannot be less than or equal to 0 !");
+ if (string.IsNullOrWhiteSpace(clientVersion)) throw new ArgumentNullException(@"'clientVersion' cannot be null !");
+ if (string.IsNullOrWhiteSpace(serverLastVersion)) throw new ArgumentNullException(@"'serverLastVersion' cannot be null !");
}
}
}
\ No newline at end of file
diff --git a/src/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj b/src/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj
index e6a65251521507dae825b1a51b18609c965b7677..263e08baef99665601f0d584f90eac8297f0fba5 100644
--- a/src/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj
+++ b/src/GeneralUpdate.ClientCore/GeneralUpdate.ClientCore.csproj
@@ -2,11 +2,18 @@
netstandard2.0
- 1.1.2.0
- 1.1.2.0
- 1.1.2
+ 2.3.6.0
+ 2.3.6.0
+ 2.3.6
juster.chu
- Updateable and automatically update the component itself.
+ Provides functions related to upgrade and update programs.
+ GeneralUpdate.ico
+ Snipaste_128.png
+ False
+ True
+ https://github.com/WELL-E/AutoUpdater
+ Copyright © 2022
+ Provides high-performance, low-loss, resume-breakpoint, version-by-version update, binary differential update, incremental update function, configuration file retention update and other features
@@ -18,6 +25,7 @@
+
@@ -133,4 +141,11 @@
+
+
+ True
+ \
+
+
+
diff --git a/src/GeneralUpdate.ClientCore/GeneralUpdate.ico b/src/GeneralUpdate.ClientCore/GeneralUpdate.ico
new file mode 100644
index 0000000000000000000000000000000000000000..7cb4a86c1bbf84baf7b783ab21b4a7e1cf700455
Binary files /dev/null and b/src/GeneralUpdate.ClientCore/GeneralUpdate.ico differ
diff --git a/src/GeneralUpdate.ClientCore/Strategys/ClientStrategy.cs b/src/GeneralUpdate.ClientCore/Strategys/ClientStrategy.cs
index d8f5b4ae2b6c4cf3c760344784bfacc19453d600..31bd50936af4b20f8aeb9cd7d49e754d4abfc749 100644
--- a/src/GeneralUpdate.ClientCore/Strategys/ClientStrategy.cs
+++ b/src/GeneralUpdate.ClientCore/Strategys/ClientStrategy.cs
@@ -1,8 +1,8 @@
using GeneralUpdate.Core.DTOs;
using GeneralUpdate.Core.Models;
-using GeneralUpdate.Core.Utils;
using GeneralUpdate.Core.Strategys;
using GeneralUpdate.Core.Update;
+using GeneralUpdate.Core.Utils;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
diff --git a/src/GeneralUpdate.Core/Bootstrap/AbstractBootstrap.cs b/src/GeneralUpdate.Core/Bootstrap/AbstractBootstrap.cs
index 13c908bd62f81c69844aafea06e341e11346bba5..f2f0cc7cb96d3621313faa9f2f1dccefea0b2b3c 100644
--- a/src/GeneralUpdate.Core/Bootstrap/AbstractBootstrap.cs
+++ b/src/GeneralUpdate.Core/Bootstrap/AbstractBootstrap.cs
@@ -153,6 +153,13 @@ namespace GeneralUpdate.Core.Bootstrap
#region Config option.
+ ///
+ /// Setting update configuration.
+ ///
+ ///
+ /// Configuration Action Enumeration.
+ /// Value
+ ///
public virtual TBootstrap Option(UpdateOption option, T value)
{
Contract.Requires(option != null);
diff --git a/src/GeneralUpdate.Core/CustomAwaiter/IAwaitable.cs b/src/GeneralUpdate.Core/CustomAwaiter/IAwaitable.cs
index 25081aa2c1df8de1b86cce260ae181265879a6bd..0c854044ef59f2bba3f9a7787cdd875e50f047cd 100644
--- a/src/GeneralUpdate.Core/CustomAwaiter/IAwaitable.cs
+++ b/src/GeneralUpdate.Core/CustomAwaiter/IAwaitable.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace GeneralUpdate.Core.CustomAwaiter
+namespace GeneralUpdate.Core.CustomAwaiter
{
public interface IAwaitable where TAwaiter : IAwaiter
{
@@ -13,4 +9,4 @@ namespace GeneralUpdate.Core.CustomAwaiter
{
TAwaiter GetAwaiter();
}
-}
+}
\ No newline at end of file
diff --git a/src/GeneralUpdate.Core/CustomAwaiter/IAwaiter.cs b/src/GeneralUpdate.Core/CustomAwaiter/IAwaiter.cs
index bf917d05ba584aae9909390abfbb8cf419a48c96..42255ef04049a95f5be13fe959d3edc71465c842 100644
--- a/src/GeneralUpdate.Core/CustomAwaiter/IAwaiter.cs
+++ b/src/GeneralUpdate.Core/CustomAwaiter/IAwaiter.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
+using System.Runtime.CompilerServices;
namespace GeneralUpdate.Core.CustomAwaiter
{
@@ -18,4 +15,4 @@ namespace GeneralUpdate.Core.CustomAwaiter
TResult GetResult();
}
-}
+}
\ No newline at end of file
diff --git a/src/GeneralUpdate.Core/CustomAwaiter/ICriticalAwaiter.cs b/src/GeneralUpdate.Core/CustomAwaiter/ICriticalAwaiter.cs
index b4d36916083e87ce35603a0b130305c158eccaa5..f4876ca403c570162f726608567068b5a6108ed2 100644
--- a/src/GeneralUpdate.Core/CustomAwaiter/ICriticalAwaiter.cs
+++ b/src/GeneralUpdate.Core/CustomAwaiter/ICriticalAwaiter.cs
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Runtime.CompilerServices;
-using System.Text;
+using System.Runtime.CompilerServices;
namespace GeneralUpdate.Core.CustomAwaiter
{
@@ -12,4 +9,4 @@ namespace GeneralUpdate.Core.CustomAwaiter
public interface ICriticalAwaiter : IAwaiter, ICriticalNotifyCompletion
{
}
-}
+}
\ No newline at end of file
diff --git a/src/GeneralUpdate.Core/GeneralUpdate.Core.csproj b/src/GeneralUpdate.Core/GeneralUpdate.Core.csproj
index 183931e566e2557fafa696fa71a60eff7d4b265e..59d4d94e45d68cc009ce05a13457ea016f2dc0b0 100644
--- a/src/GeneralUpdate.Core/GeneralUpdate.Core.csproj
+++ b/src/GeneralUpdate.Core/GeneralUpdate.Core.csproj
@@ -2,11 +2,20 @@
netstandard2.0
Library
- F35F100D-B8E9-4F20-8572-7AB549913D69
- 2.0.1
- juster.chu
- none
+ $(AssemblyName)
+ 4.10.12
+ juster.zhu
+ juster.zhu
false
+ GeneralUpdate.ico
+ Snipaste_128.png
+ True
+ Copyright © 2022
+ This section describes how to upgrade client applications.
+ Provides high-performance, low-loss, resume-breakpoint, version-by-version update, binary differential update, incremental update function, configuration file retention update and other features.
+ https://github.com/WELL-E/AutoUpdater
+ GeneralUpdate.Core
+ GeneralUpdate.Core
@@ -28,9 +37,16 @@
+
+
+
+ True
+ \
+
+
diff --git a/src/GeneralUpdate.Core/GeneralUpdate.ico b/src/GeneralUpdate.Core/GeneralUpdate.ico
new file mode 100644
index 0000000000000000000000000000000000000000..7cb4a86c1bbf84baf7b783ab21b4a7e1cf700455
Binary files /dev/null and b/src/GeneralUpdate.Core/GeneralUpdate.ico differ
diff --git a/src/GeneralUpdate.Core/GeneralUpdateBootstrap.cs b/src/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
index 77aa67a908f398107c1882b160dafd7878a4689d..059b99b41e61f177353094abe663e1c2c5fad972 100644
--- a/src/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
+++ b/src/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
@@ -1,7 +1,7 @@
-using GeneralUpdate.Core.Models;
-using GeneralUpdate.Core.Utils;
-using GeneralUpdate.Core.Bootstrap;
+using GeneralUpdate.Core.Bootstrap;
+using GeneralUpdate.Core.Models;
using GeneralUpdate.Core.Strategys;
+using GeneralUpdate.Core.Utils;
using System;
namespace GeneralUpdate.Core
diff --git a/src/GeneralUpdate.Core/Models/ClientParameter.cs b/src/GeneralUpdate.Core/Models/ClientParameter.cs
index 2f007c5b1d64558ac26fe7884294ddb3a28376f0..5d15f8792eb2c7744d005445c52dd0062ce3a218 100644
--- a/src/GeneralUpdate.Core/Models/ClientParameter.cs
+++ b/src/GeneralUpdate.Core/Models/ClientParameter.cs
@@ -96,7 +96,5 @@ namespace GeneralUpdate.Core.Models
public string Version { get; set; }
public string Url { get; set; }
-
- public bool IsUnZip { get; set; }
}
}
\ No newline at end of file
diff --git a/src/GeneralUpdate.Core/Models/FileBase.cs b/src/GeneralUpdate.Core/Models/FileBase.cs
index eef08a880b395c2335c13f0e75f7b37a1006da69..c5c5349a1febcc002307a817b733418c978b4065 100644
--- a/src/GeneralUpdate.Core/Models/FileBase.cs
+++ b/src/GeneralUpdate.Core/Models/FileBase.cs
@@ -1,5 +1,4 @@
using GeneralUpdate.Core.Update;
-using System;
namespace GeneralUpdate.Core.Models
{
@@ -8,50 +7,50 @@ namespace GeneralUpdate.Core.Models
///
/// 文件名
///
- public string Name { get; set; }
+ //public string Name { get; set; }
///
/// MD5校验码
///
- public string MD5 { get; set; }
+ //public string MD5 { get; set; }
///
- /// 当前版本
+ /// Client current version.
///
public string ClientVersion { get; set; }
///
- /// 最新版本
+ /// The latest version.
///
public string LastVersion { get; set; }
///
/// 文件唯一id
///
- public string Guid { get; set; }
+ //public string Guid { get; set; }
///
/// 文件大小
///
- public long Size { get; set; }
+ //public long Size { get; set; }
///
/// 下载的文件大小
///
- public long? TotalSize { get; set; }
+ //public long? TotalSize { get; set; }
///
/// 时间
///
- public DateTime Date { get; set; }
+ //public DateTime Date { get; set; }
///
- /// 安装路径(用于更新文件逻辑)
+ /// installation path (for update file logic).
///
public string InstallPath { get; set; }
///
- /// 下载文件临时存储路径(用于更新文件逻辑)
+ /// Download file temporary storage path (for update file logic).
///
public string TempPath { get; set; }
}
diff --git a/src/GeneralUpdate.Core/Models/UpdateConfig.cs b/src/GeneralUpdate.Core/Models/UpdateConfig.cs
index e1da6d9d5ac43a76c170f03c8a258ee0508b8ba7..1e3395dcedb9a689da2a5d2ff7e545b63dd9da6c 100644
--- a/src/GeneralUpdate.Core/Models/UpdateConfig.cs
+++ b/src/GeneralUpdate.Core/Models/UpdateConfig.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace GeneralUpdate.Core.Models
+namespace GeneralUpdate.Core.Models
{
public class UpdateConfig
{
@@ -18,4 +12,4 @@ namespace GeneralUpdate.Core.Models
///
public string DoneDate { get; set; }
}
-}
+}
\ No newline at end of file
diff --git a/src/GeneralUpdate.Core/Pipelines/Context/BaseContext.cs b/src/GeneralUpdate.Core/Pipelines/Context/BaseContext.cs
index 405945feb11c83893dcb027232dbc7799197aec4..44fc8ccecc574cce270db7f5b6e94ce113575a7b 100644
--- a/src/GeneralUpdate.Core/Pipelines/Context/BaseContext.cs
+++ b/src/GeneralUpdate.Core/Pipelines/Context/BaseContext.cs
@@ -5,6 +5,9 @@ using System.Text;
namespace GeneralUpdate.Core.Pipelines.Context
{
+ ///
+ /// Pipeline common content.
+ ///
public class BaseContext
{
private Action