Skip to content

Commit 3e3b3a1

Browse files
committed
更新readme
1 parent 291da19 commit 3e3b3a1

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

README.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
- GeneralUpdate是一款基于.NET Standard2.0开源自动升级组件。
1212
- 运行环境:.NET7、.NET MAUI、Visual studio 2022(Preview)
1313

14-
![1708869360661](imgs/1708869360661.jpg)
15-
1614
| 功能 | 是否支持 | 备注 |
1715
| ------------------------------ | -------- | ------------------------------------------------------------ |
1816
| 断点续传 | 支持 | 单次更新失败时,下次一次启动时继续上一次更新下载更新包内容。(引用组件默认生效) |
@@ -99,36 +97,3 @@
9997
| 树莓派(IoT) | 待验证 |
10098
| 麒麟V10(飞腾S2500) | 支持 |
10199
| 麒麟V10(x64) | 支持 |
102-
103-
104-
105-
## 6.GeneralUpdate.SystemService发布/部署
106-
107-
GeneralUpdate.SystemService是一个windows系统服务,并不是部署在服务端的web api。它的主要作用是监听更新过程,以及更新崩溃之后还原。
108-
109-
**发布:**
110-
111-
推荐发布Single file,如果想发布AOT版本需要移除源码中映射代码。
112-
113-
```shell
114-
dotnet publish -r win-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true
115-
```
116-
117-
**创建/部署windows服务:**
118-
119-
```shell
120-
sc create MyWorkerService binPath="C:\your_path\GeneralUpdate.SystemService.exe"
121-
```
122-
123-
**启动已部署的windows服务:**
124-
125-
```shell
126-
sc start GeneralUpdate.SystemService
127-
```
128-
129-
**删除已部署的windows服务:**
130-
131-
```shell
132-
sc delete GeneralUpdate.SystemService
133-
```
134-

README_en.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -92,36 +92,3 @@
9292
| raspberry pie | Not currently supported |
9393
| Kylin V10 (FT-S2500) | yes |
9494
| Kylin V10 (x64) | yes |
95-
96-
97-
98-
## GeneralUpdate.SystemService Publish/Deploy
99-
100-
GeneralUpdate.SystemService is a Windows system service, not a web API deployed on the server. Its main purpose is to listen for the update process and restore after an update crash.
101-
102-
**Publish:**
103-
104-
It is recommended to release a single file, if you want to release the AOT version, you need to remove the mapping code from the source code.
105-
106-
```shell
107-
dotnet publish -r win-x64 -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained true
108-
```
109-
110-
**Create/deploy Windows services:**
111-
112-
```shell
113-
sc create MyWorkerService binPath="C:\your_path\GeneralUpdate.SystemService.exe"
114-
```
115-
116-
**Start the deployed Windows service:**
117-
118-
```shell
119-
sc start GeneralUpdate.SystemService
120-
```
121-
122-
**Delete the deployed Windows service:**
123-
124-
```shell
125-
sc delete GeneralUpdate.SystemService
126-
```
127-

0 commit comments

Comments
 (0)