UPDATE: update to go 1.25

This commit is contained in:
2025-08-24 17:22:30 +07:00
parent b2adcd7981
commit 99b9df1ce5
11 changed files with 1232 additions and 1730 deletions

View File

@@ -96,7 +96,7 @@ func (g *GitService) DownloadServerProgress(version string) (bool, string) {
defer resp.Body.Close()
DownloadFile(saveFile, assetWin.BrowserDownloadURL, func(percent float64, speed float64) {
application.Get().EmitEvent("download:server", map[string]interface{}{
application.Get().Event.Emit("download:server", map[string]interface{}{
"percent": fmt.Sprintf("%.2f", percent),
"speed": fmt.Sprintf("%.2f", speed),
})
@@ -188,7 +188,7 @@ func (g *GitService) DownloadProxyProgress(version string) (bool, string) {
defer resp.Body.Close()
DownloadFile(saveFile, assetWin.BrowserDownloadURL, func(percent float64, speed float64) {
application.Get().EmitEvent("download:proxy", map[string]interface{}{
application.Get().Event.Emit("download:proxy", map[string]interface{}{
"percent": fmt.Sprintf("%.2f", percent),
"speed": fmt.Sprintf("%.2f", speed),
})