Files
packages/anda/tools/arduino-create-agent/update.patch
T
Owen Zimmerman f7aad4a567 add: arduino-create-agent (#3129)
* Add: arduino-create-agent

* uncomment patch

* Patch0

* Apply patch maybe

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

---------

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
2025-02-03 15:56:10 +08:00

26 lines
776 B
Diff

diff --git a/main.go b/main.go
index 1ca857b..c945487 100755
--- a/main.go
+++ b/main.go
@@ -461,7 +461,6 @@ func loop() {
r.Handle("WSS", "/socket.io/", socketHandler)
r.GET("/info", infoHandler)
r.POST("/pause", pauseHandler)
- r.POST("/update", updateHandler)
// Mount goa handlers
goa := v2.Server(config.GetDataDir().String(), Index)
diff --git a/updater/updater.go b/updater/updater.go
index db4e545..693431a 100644
--- a/updater/updater.go
+++ b/updater/updater.go
@@ -34,7 +34,7 @@ import (
// binary to be executed to perform the update. If no update has been downloaded
// it returns an empty string.
func Start(src string) string {
- return start(src)
+ return ""
}
// CheckForUpdates checks if there is a new version of the binary available and