arduino flasher (#7385) (#7824)

* arduino flasher

* -a-L

* dont need probably



* fix(arduino-flasher-cli): make it build

* use x86_64

---------





(cherry picked from commit 3d13c6521f)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Jaiden Riordan <jade@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: metcya <metcya@gmail.com>
Co-authored-by: metcya <134973769+metcya@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-11-30 19:20:04 -08:00
committed by GitHub
parent e6ccb27733
commit fccf8bb761
3 changed files with 53 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project pkg {
arches = ["x86_64"]
rpm {
spec = "arduino-flasher-cli.spec"
}
}
@@ -0,0 +1,46 @@
%global goipath github.com/arduino/arduino-flasher-cli
Version: 0.3.0
%gometa -f
%global common_description %{expand:
CLI tool to flash UNO Q boards with the latest Arduino Linux image.}
%global golicenses LICENSE license_header.tpl
%global godocs README.md
Name: arduino-flasher-cli
Release: 1%?dist
Summary: CLI tool to flash UNO Q boards with the latest Arduino Linux image
License: GPL-3.0-only
URL: %{gourl}
Source0: %{gosource}
Source1: https://raw.githubusercontent.com/arduino/arduino-flasher-cli/refs/heads/main/README.md
BuildRequires: anda-srpm-macros qdl
ExclusiveArch: x86_64
%description %{common_description}
%gopkg
%prep
%goprep
%build
mkdir -p updater/artifacts/resources_linux_amd64
cp %{_bindir}/qdl updater/artifacts/resources_linux_amd64/qdl
%define gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/arduino-cli %{goipath}
%install
cp %{S:1} README.md
install -Dm755 %{gobuilddir}/bin/arduino-cli -t %buildroot%{_bindir}
%files
%license LICENSE
%doc README.md
%{_bindir}/arduino-cli
%changelog
* Fri Nov 14 2025 Jaiden Riordan <jade@fyralabs.com>
- Package Arduino Flasher :3
@@ -0,0 +1 @@
rpm.version(gh("arduino/arduino-flasher-cli"));