Skip to content

Commit

Permalink
发布,完善自动更新软件
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Nov 9, 2023
1 parent db7c40c commit a724037
Show file tree
Hide file tree
Showing 7 changed files with 779 additions and 11 deletions.
4 changes: 4 additions & 0 deletions easyToTV/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,7 @@ func (a *App) E设置播放进度(pos int) string {
return "ok"

}
func (a *App) E检查更新() string {
myModel.E检查更新()
return "ok"
}
12 changes: 3 additions & 9 deletions easyToTV/frontend/src/win/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ export function BindWindowEvent(c, comps) {

}

c.Button_检查更新Click = function () {
console.log("Button_检查更新Click")

ElMessage.success('暂时没有开发');
}

c.Button_开始播放Click = function () {
console.log("Button_开始播放Click")
if (comps.Select_设备列表.value == "") {
Expand Down Expand Up @@ -140,10 +134,10 @@ export function BindWindowEvent(c, comps) {
comps.进度条_时间轴.n = parseInt(0);
}

c.Button_检查更新被单击 = function () {
c.Button_检查更新被单击 = async function () {
console.log("Button_检查更新被单击")
ElMessage.success('等待开发');

ElMessage.success('检查更新中');
await goFc.E检查更新();
}


Expand Down
2 changes: 2 additions & 0 deletions easyToTV/frontend/wailsjs/go/main/App.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export function E投递视频文件(arg1:string,arg2:string,arg3:string):Promise

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

export function E检查更新():Promise<string>;

export function E继续播放():Promise<string>;

export function E获取系统时间():Promise<string>;
Expand Down
4 changes: 4 additions & 0 deletions easyToTV/frontend/wailsjs/go/main/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export function E暂停播放() {
return window['go']['main']['App']['E暂停播放']();
}

export function E检查更新() {
return window['go']['main']['App']['E检查更新']();
}

export function E继续播放() {
return window['go']['main']['App']['E继续播放']();
}
Expand Down
10 changes: 8 additions & 2 deletions easyToTV/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ require (
github.com/alexballas/go2tv v0.0.0-00010101000000-000000000000
github.com/duolabmeng6/goefun v1.3.8
github.com/gin-gonic/gin v1.9.1
github.com/ncruces/zenity v0.10.10
github.com/wailsapp/wails/v2 v2.6.0
)

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

require (
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible // indirect
github.com/akavel/rsrc v0.10.2 // indirect
github.com/alexballas/go-ssdp v0.0.3 // indirect
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect
github.com/bep/debounce v1.2.1 // indirect
github.com/bytedance/sonic v1.9.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/dchest/jsmin v0.0.0-20220218165748-59f39799265f // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
Expand All @@ -32,6 +35,7 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/josephspurrier/goversioninfo v1.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/kr/pretty v0.3.0 // indirect
Expand All @@ -49,6 +53,7 @@ require (
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/randall77/makefat v0.0.0-20210315173500-7ddd0e42c844 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.8.0 // indirect
github.com/rs/zerolog v1.29.0 // indirect
Expand All @@ -65,9 +70,10 @@ require (
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
golang.org/x/image v0.10.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit a724037

Please sign in to comment.