Skip to content

Commit 284b3f2

Browse files
committed
新增快速启动说明
1 parent 0d00581 commit 284b3f2

File tree

10 files changed

+94
-2
lines changed

10 files changed

+94
-2
lines changed

website/docs/doc/UpgradeHub.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar_position: 7
1010

1111

1212

13-
VersionHub是基于SignalR实现的推送更新版本信息的机制,可以实现一对一和一对多的推送。
13+
UpgradeHubService是基于SignalR实现的推送更新版本信息的机制,可以实现一对一和一对多的推送。
1414

1515
```c#
1616
public class UpgradeHubService : IUpgradeHubService
@@ -19,7 +19,7 @@ public class UpgradeHubService : IUpgradeHubService
1919
nuget安装
2020

2121
```shell
22-
NuGet\Install-Package GeneralUpdate.ClientCore -Version 3.0.0
22+
NuGet\Install-Package GeneralUpdate.ClientCore -Version 1.0.0
2323
```
2424

2525

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
slug: quikstart
3+
title: GeneralUpdate
4+
authors: juster
5+
tags: [quikstart]
6+
---
7+
8+
9+
10+
## Step1
11+
12+
在Github上下载Sample仓库,使用示例前请确保本地安装了.NET 8的运行环境。
13+
14+
- https://github.com/GeneralLibrary/GeneralUpdate-Samples
15+
16+
仓库目录内容如下:
17+
18+
![](imgs\content.png)
19+
20+
| 名称 | 说明 |
21+
| ------------ | -------------------------------- |
22+
| Client | 主客户端示例程序 |
23+
| Server | 服务端示例程序 |
24+
| StartManager | 更新流程控制台 |
25+
| Upgrade | 升级端示例程序 |
26+
| process.bat | 无需关注 |
27+
| resource.bat | 无需关注 |
28+
| start.cmd | 启动更新示例的脚本,一切从它开始 |
29+
30+
31+
32+
## Step2
33+
34+
找到文件目录,并双击(每次启动start.cmd脚本都会重置本地目录所以无需手动管理文件目录):
35+
36+
```shell
37+
...\GeneralUpdate-Samples\src\start.cmd
38+
```
39+
40+
![](imgs\build.png)
41+
42+
43+
44+
如下图所示,自动开始编译并拷贝所有相关项目的bin目录到app目录下:
45+
46+
```
47+
...\GeneralUpdate-Samples\src\run\app
48+
```
49+
50+
![](imgs\build.png)
51+
52+
53+
54+
这时候就会出现StartManager.exe的界面,所有的选项均为字面意思,我们先别着急输入1这时候先看看app目录更新之前的装备后续方便我们验证更新结果。
55+
56+
![](imgs\manager.png)
57+
58+
59+
60+
我们进入到app目录之后,可以看到这是没有升级之前的目录。
61+
62+
![](imgs\rundir.png)
63+
64+
65+
66+
## Step3
67+
68+
检查完app目录之后:
69+
70+
- 输入选项1然后回车
71+
- 服务端示例程序启动
72+
- 主客户端示例程序启动,开始请求更新(主客户端程序更新完成之后会自动关闭)。
73+
74+
![](imgs\upgrade.png)
75+
76+
77+
78+
看到主客户端程序自动关闭,我们再去检查一下run\app目录。会发现多了一个备份目录“app-1.0.0.0”和一个“Congratulations on the update.txt”。
79+
80+
![](imgs\rundir2.png)
81+
82+
看到这里代表您已经成功的完成了一次升级,Congratulations!
83+
84+
![](imgs\result.png)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Quik start",
3+
"position": 1,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "Quik start."
7+
}
8+
}
94 KB
Loading
53.1 KB
Loading
25.4 KB
Loading
87.7 KB
Loading
135 KB
Loading
102 KB
Loading
111 KB
Loading

0 commit comments

Comments
 (0)