feat: 自动更新

This commit is contained in:
Akizon77
2025-04-29 21:26:50 +08:00
parent 5f882d7042
commit d4b66e86f9
4 changed files with 142 additions and 1 deletions

12
go.mod
View File

@@ -3,15 +3,27 @@ module github.com/komari-monitor/komari-agent
go 1.23.2
require (
github.com/blang/semver v3.5.1+incompatible
github.com/gorilla/websocket v1.5.3
github.com/rhysd/go-github-selfupdate v1.2.3
github.com/shirou/gopsutil v3.21.11+incompatible
golang.org/x/sys v0.32.0
)
require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/golang/protobuf v1.3.2 // indirect
github.com/google/go-github/v30 v30.1.0 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf // indirect
github.com/stretchr/testify v1.10.0 // indirect
github.com/tcnksm/go-gitconfig v0.1.2 // indirect
github.com/tklauser/go-sysconf v0.3.15 // indirect
github.com/tklauser/numcpus v0.10.0 // indirect
github.com/ulikunitz/xz v0.5.9 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 // indirect
golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288 // indirect
google.golang.org/appengine v1.3.0 // indirect
)