add: arduino-create-agent (#3129) (#3188)

This commit is contained in:
Raboneko
2025-02-03 08:30:14 -08:00
committed by GitHub
parent 9d1d1cd4a0
commit 5501411cde
4 changed files with 66 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "arduino-create-agent.spec"
}
}
@@ -0,0 +1,35 @@
%define debug_package %nil
Name: arduino-create-agent
Version: 1.6.1
Release: 1%?dist
Summary: Arduino Cloud Agent.
License: AGPLv3
Packager: Owen Zimmerman <owen@fyralabs.com>
Url: https://github.com/arduino/arduino-create-agent
Source0: %url/archive/refs/tags/%version.tar.gz
Patch0: update.patch
BuildRequires: golang git go-rpm-macros anda-srpm-macros
%description
The Arduino Cloud Agent is a single binary that will sit on the traybar and work in the background.
It allows you to use the Arduino Cloud to seamlessly upload code to any USB connected Arduino board (or Yún in LAN) directly from the browser.
%prep
%autosetup -n arduino-create-agent-%version -p1
%build
%go_build_online
%install
mkdir -p %{buildroot}%{_bindir}
install -Dm 755 build/bin/arduino-create-agent %buildroot%{_bindir}/arduino-create-agent
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/arduino-create-agent
%changelog
* Sat Jan 25 2025 Owen Zimmerman <owen@fyralabs.com>
- Package arduino-create-agent
@@ -0,0 +1,25 @@
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
@@ -0,0 +1 @@
rpm.version(gh("arduino/arduino-create-agent"));