Skip to content

Commit a724037

Browse files
committed
发布,完善自动更新软件
1 parent db7c40c commit a724037

File tree

7 files changed

+779
-11
lines changed

7 files changed

+779
-11
lines changed

easyToTV/app.go

+4
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,7 @@ func (a *App) E设置播放进度(pos int) string {
145145
return "ok"
146146

147147
}
148+
func (a *App) E检查更新() string {
149+
myModel.E检查更新()
150+
return "ok"
151+
}

easyToTV/frontend/src/win/event.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ export function BindWindowEvent(c, comps) {
9191

9292
}
9393

94-
c.Button_检查更新Click = function () {
95-
console.log("Button_检查更新Click")
96-
97-
ElMessage.success('暂时没有开发');
98-
}
99-
10094
c.Button_开始播放Click = function () {
10195
console.log("Button_开始播放Click")
10296
if (comps.Select_设备列表.value == "") {
@@ -140,10 +134,10 @@ export function BindWindowEvent(c, comps) {
140134
comps.进度条_时间轴.n = parseInt(0);
141135
}
142136

143-
c.Button_检查更新被单击 = function () {
137+
c.Button_检查更新被单击 = async function () {
144138
console.log("Button_检查更新被单击")
145-
ElMessage.success('等待开发');
146-
139+
ElMessage.success('检查更新中');
140+
await goFc.E检查更新();
147141
}
148142

149143

easyToTV/frontend/wailsjs/go/main/App.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function E投递视频文件(arg1:string,arg2:string,arg3:string):Promise
99

1010
export function E暂停播放():Promise<string>;
1111

12+
export function E检查更新():Promise<string>;
13+
1214
export function E继续播放():Promise<string>;
1315

1416
export function E获取系统时间():Promise<string>;

easyToTV/frontend/wailsjs/go/main/App.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export function E暂停播放() {
1818
return window['go']['main']['App']['E暂停播放']();
1919
}
2020

21+
export function E检查更新() {
22+
return window['go']['main']['App']['E检查更新']();
23+
}
24+
2125
export function E继续播放() {
2226
return window['go']['main']['App']['E继续播放']();
2327
}

easyToTV/go.mod

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ require (
66
github.com/alexballas/go2tv v0.0.0-00010101000000-000000000000
77
github.com/duolabmeng6/goefun v1.3.8
88
github.com/gin-gonic/gin v1.9.1
9+
github.com/ncruces/zenity v0.10.10
910
github.com/wailsapp/wails/v2 v2.6.0
1011
)
1112

1213
replace github.com/alexballas/go2tv => ./go2tv
1314

1415
require (
1516
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
17+
github.com/akavel/rsrc v0.10.2 // indirect
1618
github.com/alexballas/go-ssdp v0.0.3 // indirect
1719
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect
1820
github.com/bep/debounce v1.2.1 // indirect
1921
github.com/bytedance/sonic v1.9.1 // indirect
2022
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
23+
github.com/dchest/jsmin v0.0.0-20220218165748-59f39799265f // indirect
2124
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
2225
github.com/gin-contrib/sse v0.1.0 // indirect
2326
github.com/go-ole/go-ole v1.2.6 // indirect
@@ -32,6 +35,7 @@ require (
3235
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
3336
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
3437
github.com/joho/godotenv v1.5.1 // indirect
38+
github.com/josephspurrier/goversioninfo v1.4.0 // indirect
3539
github.com/json-iterator/go v1.1.12 // indirect
3640
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
3741
github.com/kr/pretty v0.3.0 // indirect
@@ -49,6 +53,7 @@ require (
4953
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
5054
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
5155
github.com/pkg/errors v0.9.1 // indirect
56+
github.com/randall77/makefat v0.0.0-20210315173500-7ddd0e42c844 // indirect
5257
github.com/rivo/uniseg v0.4.4 // indirect
5358
github.com/rogpeppe/go-internal v1.8.0 // indirect
5459
github.com/rs/zerolog v1.29.0 // indirect
@@ -65,9 +70,10 @@ require (
6570
golang.org/x/arch v0.3.0 // indirect
6671
golang.org/x/crypto v0.9.0 // indirect
6772
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
73+
golang.org/x/image v0.10.0 // indirect
6874
golang.org/x/net v0.10.0 // indirect
69-
golang.org/x/sys v0.8.0 // indirect
70-
golang.org/x/text v0.9.0 // indirect
75+
golang.org/x/sys v0.10.0 // indirect
76+
golang.org/x/text v0.11.0 // indirect
7177
google.golang.org/protobuf v1.30.0 // indirect
7278
gopkg.in/yaml.v3 v3.0.1 // indirect
7379
)

0 commit comments

Comments
 (0)