forked from pool/nodejs-electron
Accepting request 1117503 from devel:languages:nodejs
OBS-URL: https://build.opensuse.org/request/show/1117503 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nodejs-electron?expand=0&rev=82
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec525d03bf028008730092ac9037d5ae0c3ad9b59592e9815b34419e14c78bfe
|
||||
size 530031352
|
||||
3
electron-25.9.1.tar.zst
Normal file
3
electron-25.9.1.tar.zst
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67dd6a45fa99325dab11aa88e711bbc1c12c5e0771ff42881a83f8833df65c0e
|
||||
size 530236415
|
||||
@@ -1 +0,0 @@
|
||||
<svg width="256" height="256" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle fill="#2B2E3A" cx="128" cy="128" r="128"/><g fill="#9FEAF9" fill-rule="nonzero"><path d="M100.502 71.69c-26.005-4.736-46.567.221-54.762 14.415-6.115 10.592-4.367 24.635 4.24 39.646a2.667 2.667 0 1 0 4.626-2.653c-7.752-13.522-9.261-25.641-4.247-34.326 6.808-11.791 25.148-16.213 49.187-11.835a2.667 2.667 0 0 0 .956-5.247zm-36.999 72.307c10.515 11.555 24.176 22.394 39.756 31.388 37.723 21.78 77.883 27.601 97.675 14.106a2.667 2.667 0 1 0-3.005-4.406c-17.714 12.078-55.862 6.548-92.003-14.318-15.114-8.726-28.343-19.222-38.478-30.36a2.667 2.667 0 1 0-3.945 3.59z"/><path d="M194.62 140.753c17.028-20.116 22.973-40.348 14.795-54.512-6.017-10.423-18.738-15.926-35.645-16.146a2.667 2.667 0 0 0-.069 5.333c15.205.198 26.165 4.939 31.096 13.48 6.792 11.765 1.49 29.807-14.248 48.399a2.667 2.667 0 1 0 4.071 3.446zm-43.761-68.175c-15.396 3.299-31.784 9.749-47.522 18.835-38.942 22.483-64.345 55.636-60.817 79.675a2.667 2.667 0 1 0 5.277-.775c-3.133-21.344 20.947-52.769 58.207-74.281 15.267-8.815 31.135-15.06 45.972-18.239a2.667 2.667 0 1 0-1.117-5.215z"/><path d="M87.77 187.753c8.904 24.86 23.469 40.167 39.847 40.167 11.945 0 22.996-8.143 31.614-22.478a2.667 2.667 0 1 0-4.571-2.748c-7.745 12.883-17.258 19.892-27.043 19.892-13.605 0-26.596-13.652-34.825-36.63a2.667 2.667 0 1 0-5.021 1.797zm81.322-4.863c4.61-14.728 7.085-31.718 7.085-49.423 0-44.179-15.463-82.263-37.487-92.042a2.667 2.667 0 0 0-2.164 4.874c19.643 8.723 34.317 44.866 34.317 87.168 0 17.177-2.397 33.63-6.84 47.83a2.667 2.667 0 1 0 5.09 1.593zm50.224-2.612c0-7.049-5.714-12.763-12.763-12.763-7.049 0-12.763 5.714-12.763 12.763 0 7.049 5.714 12.763 12.763 12.763 7.049 0 12.763-5.714 12.763-12.763zm-5.333 0a7.43 7.43 0 1 1-14.86 0 7.43 7.43 0 0 1 14.86 0zM48.497 193.041c7.05 0 12.764-5.714 12.764-12.763 0-7.049-5.715-12.763-12.764-12.763-7.048 0-12.763 5.714-12.763 12.763 0 7.049 5.715 12.763 12.763 12.763zm0-5.333a7.43 7.43 0 1 1 0-14.86 7.43 7.43 0 0 1 0 14.86z"/><path d="M127.617 54.444c7.049 0 12.763-5.714 12.763-12.763 0-7.049-5.714-12.763-12.763-12.763-7.049 0-12.763 5.714-12.763 12.763 0 7.049 5.714 12.763 12.763 12.763zm0-5.333a7.43 7.43 0 1 1 0-14.86 7.43 7.43 0 0 1 0 14.86zm1.949 93.382c-4.985 1.077-9.896-2.091-10.975-7.076a9.236 9.236 0 0 1 7.076-10.976c4.985-1.077 9.896 2.091 10.976 7.076 1.077 4.985-2.091 9.897-7.077 10.976z"/></g></g></svg>
|
||||
|
Before Width: | Height: | Size: 2.4 KiB |
@@ -4,4 +4,5 @@ Name=Electron
|
||||
Icon=electron
|
||||
Exec=electron %u
|
||||
Categories=Development;GTK;
|
||||
NoDisplay=true
|
||||
StartupNotify=true
|
||||
|
||||
21
icon.patch
Normal file
21
icon.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
--- a/electron/default_app/default_app.ts
|
||||
+++ b/electron/default_app/default_app.ts
|
||||
@@ -60,7 +60,7 @@
|
||||
};
|
||||
|
||||
if (process.platform === 'linux') {
|
||||
- options.icon = path.join(__dirname, 'icon.png');
|
||||
+ options.icon = '/usr/share/icons/hicolor/1024x1024/apps/electron.png';
|
||||
}
|
||||
|
||||
mainWindow = new BrowserWindow(options);
|
||||
--- a/electron/filenames.gni
|
||||
+++ b/electron/filenames.gni
|
||||
@@ -6,7 +6,6 @@
|
||||
]
|
||||
|
||||
default_app_static_sources = [
|
||||
- "default_app/icon.png",
|
||||
"default_app/index.html",
|
||||
"default_app/package.json",
|
||||
"default_app/styles.css",
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 12 17:04:40 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com>
|
||||
|
||||
- New upstream release 25.9.1
|
||||
* Fixed an issue where calling loadURL during some webContents url loading events could crash.
|
||||
* Fixed deprecated gpu-process-crashed / renderer-process-crashed events being emitted twice and with incorrect arguments.
|
||||
- Desktop integration cleanup:
|
||||
* edit .desktop file to not show Electron in start menu as it is useless when run by itself
|
||||
* drop electron-logo-symbolic.svg and instead use upstream supplied icon
|
||||
* do not install icon twice (icon.patch)
|
||||
* do not create /{etc,usr/share}/webapps directories which do not belong here
|
||||
* do not recommend noto-coloremoji-fonts, if an app needs it it should pull it by itself.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 5 09:13:46 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com>
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ BuildArch: i686
|
||||
|
||||
|
||||
Name: nodejs-electron
|
||||
Version: 25.9.0
|
||||
Version: 25.9.1
|
||||
Release: 0
|
||||
Summary: Build cross platform desktop apps with JavaScript, HTML, and CSS
|
||||
License: AFL-2.0 AND Apache-2.0 AND blessing AND BSD-2-Clause AND BSD-3-Clause AND BSD-Protection AND BSD-Source-Code AND bzip2-1.0.6 AND IJG AND ISC AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND MIT-CMU AND MIT-open-group AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later) AND MPL-2.0 AND OpenSSL AND SGI-B-2.0 AND SUSE-Public-Domain AND X11
|
||||
@@ -207,7 +207,6 @@ Source0: %{mod_name}-%{version}.tar.zst
|
||||
Source1: create_tarball.sh
|
||||
Source10: electron-launcher.sh
|
||||
Source11: electron.desktop
|
||||
Source12: electron-logo-symbolic.svg
|
||||
# Shim generators for unbundling libraries
|
||||
Source50: flatbuffers.gn
|
||||
Source51: libsecret.gn
|
||||
@@ -258,6 +257,7 @@ Patch76: disable-devtools-tests.patch
|
||||
Patch77: angle_link_glx.patch
|
||||
Patch78: rdynamic.patch
|
||||
Patch79: v8-hide-private-symbols.patch
|
||||
Patch80: icon.patch
|
||||
|
||||
# PATCHES to use system libs
|
||||
Patch1000: do-not-build-libvulkan.so.patch
|
||||
@@ -383,6 +383,7 @@ BuildRequires: HdrHistogram_c-devel
|
||||
%endif
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: hwdata
|
||||
BuildRequires: ImageMagick
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: libatomic
|
||||
%endif
|
||||
@@ -614,7 +615,6 @@ BuildRequires: pkgconfig(libspa-0.2)
|
||||
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: google-roboto-fonts
|
||||
Recommends: noto-coloremoji-fonts
|
||||
|
||||
# This required library is dlopened
|
||||
%if %{without link_vulkan}
|
||||
@@ -730,6 +730,16 @@ sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
|
||||
|
||||
|
||||
%build
|
||||
pushd electron/shell/browser/resources/win
|
||||
[ $(identify electron.ico | wc -l) = 4 ] #Sanity check
|
||||
convert electron.ico -strip extracted.png
|
||||
identify extracted-0.png | grep -F 16x16
|
||||
identify extracted-1.png | grep -F 32x32
|
||||
identify extracted-2.png | grep -F 48x48
|
||||
identify extracted-3.png | grep -F 256x256
|
||||
popd
|
||||
|
||||
|
||||
# GN sets lto on its own and we need just ldflag options, not cflags
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
@@ -1310,8 +1320,13 @@ install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/
|
||||
|
||||
install -pm 0755 %{SOURCE10} %{buildroot}%{_bindir}/%{mod_name}
|
||||
sed -i 's[XXXLIBDIRXXX[%{_libdir}[g' %{buildroot}%{_bindir}/%{mod_name}
|
||||
install -pm 0644 electron/default_app/icon.png %{buildroot}%{_datadir}/pixmaps/%{mod_name}.png
|
||||
install -pm 0644 %{SOURCE12} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/electron-symbolic.svg
|
||||
install -pvDm644 electron/default_app/icon.png %{buildroot}%{_datadir}/icons/hicolor/1024x1024/%{mod_name}.png
|
||||
|
||||
install -pvDm644 electron/shell/browser/resources/win/extracted-0.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{mod_name}.png
|
||||
install -pvDm644 electron/shell/browser/resources/win/extracted-1.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{mod_name}.png
|
||||
install -pvDm644 electron/shell/browser/resources/win/extracted-2.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{mod_name}.png
|
||||
install -pvDm644 electron/shell/browser/resources/win/extracted-3.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{mod_name}.png
|
||||
|
||||
|
||||
desktop-file-install --dir %{buildroot}%{_datadir}/applications/ %{SOURCE11}
|
||||
|
||||
@@ -1359,16 +1374,15 @@ ln -srv third_party -t out/Release
|
||||
%files
|
||||
%license electron/LICENSE out/Release/LICENSES.chromium.html
|
||||
%{_bindir}/electron
|
||||
%{_datadir}/pixmaps/electron.png
|
||||
%{_datadir}/icons/hicolor/symbolic/apps/electron-symbolic.svg
|
||||
%{_datadir}/applications/electron.desktop
|
||||
|
||||
%{_datadir}/icons/hicolor/16x16/apps/electron.png
|
||||
%{_datadir}/icons/hicolor/32x32/apps/electron.png
|
||||
%{_datadir}/icons/hicolor/48x48/apps/electron.png
|
||||
%{_datadir}/icons/hicolor/256x256/apps/electron.png
|
||||
%{_datadir}/icons/hicolor/1024x1024
|
||||
|
||||
%{_libdir}/electron/
|
||||
|
||||
%dir %{_sysconfdir}/webapps
|
||||
%dir %{_datadir}/webapps
|
||||
|
||||
%files devel
|
||||
%{_includedir}/electron
|
||||
%{_rpmconfigdir}/macros.d/macros.electron
|
||||
|
||||
Reference in New Issue
Block a user