From b4ab289152fbdb0c8144090037af4ff218f7bf67 Mon Sep 17 00:00:00 2001 From: keyboard2005 Date: Sun, 1 Feb 2026 18:07:43 +0800 Subject: [PATCH] Fix electron-installer-redhat RPM spec copy path Update the patch for electron-installer-redhat to copy from the actual staging build directory Prevents cp: cannot stat 'usr/*' on rpm 4.20+ during %install --- patches/electron-installer-redhat+3.4.0.patch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/patches/electron-installer-redhat+3.4.0.patch b/patches/electron-installer-redhat+3.4.0.patch index 9f8d649ba51..7f760d39ff6 100644 --- a/patches/electron-installer-redhat+3.4.0.patch +++ b/patches/electron-installer-redhat+3.4.0.patch @@ -8,3 +8,8 @@ index e07a8a3..486f59e 100644 %if "%{_host_cpu}" != "%{_target_cpu}" %global __strip /bin/true +@@ -26,3 +27,3 @@ + %>%install + mkdir -p %{buildroot}/usr/ +-cp <%= process.platform === 'darwin' ? '-R' : '-r' %> usr/* %{buildroot}/usr/ ++cp <%= process.platform === 'darwin' ? '-R' : '-r' %> %{_topdir}/BUILD/usr/* %{buildroot}/usr/