Skip to content

Commit d4a7e25

Browse files
committed
update samples
1 parent 3f93063 commit d4a7e25

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

src/Bowl/BowlSample/BowlSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.Bowl" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.Bowl" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Client/ClientSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="GeneralUpdate.ClientCore" Version="2.12.11" />
17+
<PackageReference Include="GeneralUpdate.ClientCore" Version="9.1.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/Client/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
{
1010
Console.WriteLine($"主程序初始化,{DateTime.Now}!");
1111
Console.WriteLine("当前运行目录:" + Thread.GetDomain().BaseDirectory);
12-
await Task.Delay(2000);
1312
var configinfo = new Configinfo
1413
{
1514
//configinfo.UpdateLogUrl = "https://www.baidu.com";
16-
ReportUrl = "http://127.0.0.1:5000/Report",
17-
UpdateUrl = "http://127.0.0.1:5000/Verification",
18-
AppName = "GeneralUpdate.Upgrad.exe",
19-
MainAppName = "GeneralUpdate.Client.exe",
15+
ReportUrl = "http://127.0.0.1:5000/Upgrade/Report",
16+
UpdateUrl = "http://127.0.0.1:5000/Upgrade/Verification",
17+
AppName = "UpgradeSample.exe",
18+
MainAppName = "ClientSample.exe",
2019
InstallPath = Thread.GetDomain().BaseDirectory,
2120
//configinfo.Bowl = "Generalupdate.CatBowl.exe";
2221
//当前客户端的版本号
@@ -44,6 +43,7 @@
4443
.Option(UpdateOption.Encoding, Encoding.Default)
4544
.LaunchAsync();
4645
Console.WriteLine($"主程序已启动,{DateTime.Now}!");
46+
await Task.Delay(2000);
4747
}
4848
catch (Exception e)
4949
{

src/Compress/CompressSample/CompressSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.Common" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.Common" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Diff/DiffSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.Differential" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.Differential" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Driver/DriverSample/DriverSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.Core" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.Core" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/OSS/OSSClientSample/OSSClientSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.ClientCore" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.ClientCore" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/OSS/OSSUpgradeSample/OSSUpgradeSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.Core" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.Core" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Push/PushSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GeneralUpdate.ClientCore" Version="9.0.0" />
11+
<PackageReference Include="GeneralUpdate.ClientCore" Version="9.1.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/Server/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
string packageName = "packet_20250102230201638_1.0.0.1";
77

8-
app.MapPost("/Report", (ReportDTO request) =>
8+
app.MapPost("/Upgrade/Report", (ReportDTO request) =>
99
{
1010
return HttpResponseDTO<bool>.Success(true,"has update.");
1111
});
1212

13-
app.MapPost("/Verification", (VerifyDTO request) =>
13+
app.MapPost("/Upgrade/Verification", (VerifyDTO request) =>
1414
{
1515
var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "wwwroot", "packages", $"{packageName}.zip");
1616
var packet = new FileInfo(filePath);

0 commit comments

Comments
 (0)