add: arduino-lab-micropython-installer (#8163)

* arduino-lab-micropython-installer

Signed-off-by: Owen-sz <owen@fyralabs.com>

* use %electronmeta

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

* apply suggestions

* `%{_electron_cpu}`

* `%{_electron_cpu}`

* Hshshchwvdjvjrbakdbkvisbshe

* lol

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

* new macros wowee

Removed unnecessary installation commands for MicroPython Installer.

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

* don't need ig lol

Comment out the conditional BuildRequires for python3.

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

* oh my god %_hicolordir real

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

* omg and %_appsdir

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

* cleanup the trash

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

---------

Signed-off-by: Owen-sz <owen@fyralabs.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Owen Zimmerman
2025-12-16 23:07:40 -06:00
committed by GitHub
parent 253ea3d0c4
commit e3195bade4
4 changed files with 57 additions and 0 deletions
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "arduino-lab-micropython-installer.spec"
}
}
@@ -0,0 +1,41 @@
Name: lab-micropython-installer
%electronmeta
Version: 1.4.0
Release: 1%?dist
License: AGPL-3.0 AND %electron_license
Summary: This repository hosts the entire code of the Arduino MicroPython Installer tool
URL: https://github.com/arduino/lab-micropython-installer
Source0: %url/archive/refs/tags/v%version.tar.gz
Source1: micropython-installer.desktop
Packager: Owen Zimmerman <owen@fyralabs.com>
Requires: libdrm libxcb
BuildRequires: anda-srpm-macros
BuildRequires: pnpm
Provides: arduino-lab-micropython-installer
%description
MicroPython Installer for Arduino is a cross-platform tool that streamlines the process of downloading
and installing MicroPython firmware on compatible Arduino boards. It is compatible with macOS, Linux,
and Windows and is built using the Electron framework.
%prep
%autosetup -n %{name}-%{version}
%build
%npm_build -r package
%install
%electron_install -i micropython-installer -s micropython-installer -d micropython-installer -b micropython-installer
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/micropython-installer.desktop
%files
%doc README.md
%license LICENSE
%{_bindir}/micropython-installer
%{_libdir}/micropython-installer/
%{_hicolordir}/512x512/apps/micropython-installer.png
%{_appsdir}/micropython-installer.desktop
%changelog
* Sat Dec 06 2025 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=micropython-installer
Comment=A tool to flash MicroPython onto supported Arduino boards.
GenericName=micropython-installer
Exec=micropython-installer %U
Icon=micropython-installer
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;
@@ -0,0 +1 @@
rpm.version(gh("arduino/lab-micropython-installer"));