Port details
electron42 Build cross-platform desktop apps with JavaScript, HTML, and CSS
42.11.18 devel Σ =1 42.11.5Version of this port present on the latest quarterly branch. Maintainer: tagattie@FreeBSD.org Port Added: 2026-05-18 04:15:06
Last Update: 2026-10-24 18:51:37
Commit Hash: 6c2e6bd
People watching this port, also watch: libgd , netpbm , libwmf , gmake , png License: BSD3CLAUSE LGPL21 MPL11 MIT
WWW: https://electronjs.org/ Description: # Build cross platform desktop apps with JavaScript, HTML, and CSS.
It's easier than you think.
If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application. ¦ ¦ ¦ ¦
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist # USE_RC_SUBR (Service Scripts)
no SUBR information found for this port
Dependency lines :
electron42>0:devel/electron42 To install the port : # cd /usr/ports/devel/electron42/ && make install clean To add the package , run one of these commands: pkg install devel/electron42 pkg install electron42 NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.PKGNAME: electron42 Flavors: # there is no flavor information for this port. ONLY_FOR_ARCHS: aarch64 amd64 i386 distinfo: # TIMESTAMP = 1792789549
SHA256 (electron/chromium-148.0.7778.280.tar.xz.0) = cddbfeba5a50d950693590399df8df3a8ef5910eee367c76aec2541444c59dea
SIZE (electron/chromium-148.0.7778.280.tar.xz.0) = 2000000000
Packages (timestamps in pop-ups are UTC): #
Dependencies # NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered. Build dependencies: #
gperf : devel/gperf bindgen : devel/rust-bindgen-cli yasm : devel/yasm dri.pc : graphics/mesa-libs videodev2.h : multimedia/v4l_compat node24>0 : www/node24 npm-node24>0 : www/npm-node24 bison : devel/bison rust>=1.99.0 : lang/rust gettext-tools>=0.26 : devel/gettext-tools gmake>=4.4.1 : devel/gmake ninja : devel/ninja node : www/node24 node24>0 : www/node24 pkgconf>=1.3.0_1 : devel/pkgconf python3.12 : lang/python312 clang22 : devel/llvm22 nasm : devel/nasm xorgproto>=0 : x11/xorgproto x11.pc : x11/libX11 xcb.pc : x11/libxcb xcomposite.pc : x11/libXcomposite xcursor.pc : x11/libXcursor xdamage.pc : x11/libXdamage xext.pc : x11/libXext xfixes.pc : x11/libXfixes xi.pc : x11/libXi xrandr.pc : x11/libXrandr xrender.pc : x11/libXrender xscrnsaver.pc : x11/libXScrnSaver xtst.pc : x11/libXtst qt5-buildtools>=5.15 : devel/qt5-buildtools libQt5Core.so : devel/qt5-core libQt5Widgets.so : x11-toolkits/qt5-widgets
Test dependencies: #
git : devel/git py312-python-dbusmock>0 : devel/py-python-dbusmock@py312 sentry-cli : devel/sentry-cli Xvfb : x11-servers/xorg-server@xvfb 8x13O.pcf.gz : x11-fonts/xorg-fonts-miscbitmaps fonts.alias : x11-fonts/font-alias base : x11/xkeyboard-config xkbcomp : x11/xkbcomp node24>0 : www/node24 python3.12 : lang/python312
Runtime dependencies: #
xdg-open : devel/xdg-utils libasound_module_pcm_oss.so : audio/alsa-plugins alsa-lib>=1.1.1_1 : audio/alsa-lib x11.pc : x11/libX11 xcb.pc : x11/libxcb xcomposite.pc : x11/libXcomposite xcursor.pc : x11/libXcursor xdamage.pc : x11/libXdamage xext.pc : x11/libXext xfixes.pc : x11/libXfixes xi.pc : x11/libXi xrandr.pc : x11/libXrandr xrender.pc : x11/libXrender xscrnsaver.pc : x11/libXScrnSaver xtst.pc : x11/libXtst
Library dependencies: #
libatk-bridge-2.0.so : accessibility/at-spi2-core libatspi.so : accessibility/at-spi2-core libFLAC.so : audio/flac libopus.so : audio/opus libdbus-1.so : devel/dbus libepoll-shim.so : devel/libepoll-shim libevent.so : devel/libevent libffi.so : devel/libffi libnotify.so : devel/libnotify libpci.so : devel/libpci libnspr4.so : devel/nspr libre2.so : devel/re2 libdrm.so : graphics/libdrm libpng.so : graphics/png libwayland-client.so : graphics/wayland libwebp.so : graphics/webp libdav1d.so : multimedia/dav1d libva.so : multimedia/libva libopenh264.so : multimedia/openh264 libfreetype.so : print/freetype2 libharfbuzz.so : print/harfbuzz libsecret-1.so : security/libsecret libnss3.so : security/nss libexpat.so : textproc/expat2 libxkbcommon.so : x11/libxkbcommon libxshmfence.so : x11/libxshmfence libfontconfig.so : x11-fonts/fontconfig libasound.so : audio/alsa-lib libcups.so : print/cups libpipewire-0.3.so : multimedia/pipewire libsndio.so : audio/sndio libgbm.so : graphics/mesa-libs libGL.so : graphics/libglvnd libGLESv2.so : graphics/libglvnd libatk-1.0.so : accessibility/at-spi2-core libcairo.so : graphics/cairo libgdk_pixbuf-2.0.so : graphics/gdk-pixbuf2 libglib-2.0.so : devel/glib20 libintl.so : devel/gettext-runtime libgtk-3.so : x11-toolkits/gtk30 libxml2.so : textproc/libxml2 libxslt.so : textproc/libxslt libharfbuzz.so : print/harfbuzz libpango-1.0.so : x11-toolkits/pango libiconv.so : converters/libiconv libjpeg.so : graphics/jpeg-turbo
Fetch dependencies: #
git : devel/git npm-node24>0 : www/npm-node24 node24>0 : www/node24
Patch dependencies: #
git : devel/git jq : textproc/jq
This port is required by: # for Build #
deskutils/joplin-desktop
deskutils/podman-desktop
graphics/drawio
net-im/deltachat-desktop
for Run #
deskutils/joplin-desktop
deskutils/podman-desktop
graphics/drawio
net-im/deltachat-desktop
for Test #
deskutils/joplin-desktop
Configuration Options : #
===> The following configuration options are available for electron42-42.11.18:
AVX512=on: Enable AVX512 instructions
CODECS=on: Compile and enable patented codecs like H.264
CUPS=on: CUPS printing system support
DEBUG=off: Build with debugging support
DIST=off: Build distribution zip files
DRIVER=on: Install chromedriver
KERBEROS=on: Kerberos support
LTO=off: Use Link-Time Optimization
PIPEWIRE=on: Screen capture via PipeWire
====> Options available for the group AUDIO
ALSA=on: ALSA audio architecture support
PULSEAUDIO=on: PulseAudio sound server support
SNDIO=on: Sndio audio support
====> Kerberos support: you can only select none or one of them
HEIMDAL=off: Heimdal Kerberos (security/heimdal)
HEIMDAL_BASE=off: Heimdal Kerberos (base)
MIT=off: MIT Kerberos (security/krb5)
===> Use 'make config' to modify these settings Options name : #
devel_electron42 USES: #
bison cargo compiler:c++17-lang cpe display:test gettext-tools gl gmake gnome iconv:wchar_t jpeg localbase:ldflags ninja nodejs:24,build npm:yarn4 pkgconfig python:build,test qt:5 shebangfix tar:xz xorg
pkg-message: # FreshPorts was unable to extract/find any pkg message Master Sites: #
Commit History - (may be incomplete: for full details, see links to repositories near top of page)
Commit Credits Log message
42.11.18 24 Oct 2026 18:51:37
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.18
Changelog:
- https://github.com/electron/electron/releases/tag/v42.11.16
- https://github.com/electron/electron/releases/tag/v42.11.17
- https://github.com/electron/electron/releases/tag/v42.11.18
Reported by: GitHub (watch releases)
42.11.15 18 Oct 2026 18:39:10
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.15
Changelog: https://github.com/electron/electron/releases/tag/v42.11.15
Reported by: GitHub (watch releases)
42.11.14_1 14 Oct 2026 11:50:26
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.14
Changelog:
- https://github.com/electron/electron/releases/tag/v42.11.13
- https://github.com/electron/electron/releases/tag/v42.11.14
Reported by: GitHub (watch releases)
42.11.12_1 14 Oct 2026 07:38:19
Mikael Urankar (mikael)
lang/rust: Bump revisions after 1.99.0
PR: 299016
42.11.12 12 Oct 2026 05:49:05
Hiroki Tagato (tagattie)
devel/electron{41,42,43,44}: Fix build with LOCALBASE != /usr/local
42.11.12 12 Oct 2026 05:42:00
Hiroki Tagato (tagattie)
devel/electron{41,42,43,44}: Add AVX512 option to support older CPUs
Builds on older CPUs without AVX512 instructions support fail with the
following error:
In file included from
../../third_party/skia/modules/skcms/src/skcms_TransformSkx.cc:53:
../../third_party/skia/modules/skcms/src/Transform_inl.h:152:15: error:
always_inline function '_mm512_cvtph_ps' requires target feature 'avx512f', but
would be inlined into function 'F_from_Half' that is compiled without support
for 'avx512f'
152 | return (F)_mm512_cvtph_ps((__m256i)half);
Add AVX512 option, which is ON by default (status quo). Users can set
the option to OFF to build on older hardware.
PR: 299208
Reported by: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
Tested by: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
42.11.12 09 Oct 2026 11:54:50
Hiroki Tagato (tagattie)
devel/electron42: Add missing patch to fix build on aarch64
42.11.12 08 Oct 2026 10:41:06
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.12
Changelog:
- https://github.com/electron/electron/releases/tag/v42.11.11
- https://github.com/electron/electron/releases/tag/v42.11.12
Reported by: GitHub (watch releases)
42.11.10 01 Oct 2026 07:24:16
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.10
Changelog:
- https://github.com/electron/electron/releases/tag/v42.11.6
- https://github.com/electron/electron/releases/tag/v42.11.7
- https://github.com/electron/electron/releases/tag/v42.11.8
- https://github.com/electron/electron/releases/tag/v42.11.9
- https://github.com/electron/electron/releases/tag/v42.11.10
Reported by: GitHub (watch releases)
42.11.5 18 Sep 2026 18:42:22
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.5
Changelog: https://github.com/electron/electron/releases/tag/v42.11.5
Reported by: GitHub (watch releases)
42.11.4 16 Sep 2026 12:31:24
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.4
Changelog: https://github.com/electron/electron/releases/tag/v42.11.4
Reported by: GitHub (watch releases)
42.11.3 15 Sep 2026 12:29:55
Hiroki Tagato (tagattie)
devel/electron42: Use esbuild binary provided by npm package registry
The chromium upstream expects a specific version of esbuild for
building, which is sometimes different from the one we have in the
ports tree. To prevent such a discrepancy, always use the binary of
the same version as the upstream one which is provided by the npm
package registry.
Reported by: Andrea Venturoli <ml@netfence.it> (via ports)
42.11.3 09 Sep 2026 17:14:44
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.3
Changelog: https://github.com/electron/electron/releases/tag/v42.11.3
Reported by: GitHub (watch releases)
42.11.2_2 08 Sep 2026 10:38:00
Mikael Urankar (mikael)
lang/rust: Bump revisions after 1.98.1
PR: 298139
42.11.2_1 06 Sep 2026 11:06:16
Hiroki Tagato (tagattie)
devel/electron{42,43}: Install electron.d.ts
Some applications (e.g. VSCode) requires the file to be present while
building. Although it can be downloaded from Electron's releases page,
include here for convenience.
42.11.2 04 Sep 2026 13:22:30
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.2
Changelog: https://github.com/electron/electron/releases/tag/v42.11.2
Reported by: GitHub (watch releases)
42.11.1 03 Sep 2026 18:36:06
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.1
Changelog: https://github.com/electron/electron/releases/tag/v42.11.1
Reported by: GitHub (watch releases)
MFH: 2026Q3 (includes security fixes)
Security: 271556c1-ddbf-4d44-95e6-a731841539b2
42.11.0 31 Aug 2026 12:23:02
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.11.0
Changelog: https://github.com/electron/electron/releases/tag/v42.11.0
Reported by: GitHub (watch releases)
42.10.1 27 Aug 2026 08:59:29
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.10.1
Changelog: https://github.com/electron/electron/releases/tag/v42.10.1
Reported by: GitHub (watch releases)
42.10.0 26 Aug 2026 11:53:47
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.10.0
Changelog: https://github.com/electron/electron/releases/tag/v42.10.0
Reported by: GitHub (watch releases)
42.9.3 20 Aug 2026 17:58:51
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.9.3
Changelog:
- https://github.com/electron/electron/releases/tag/v42.9.1
- https://github.com/electron/electron/releases/tag/v42.9.2
- https://github.com/electron/electron/releases/tag/v42.9.3
Reported by: GitHub (watch releases)
42.9.0 16 Aug 2026 04:49:19
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.9.0
While here, prepare node modules archives for amd64 and aarch64
separately.
Changelog: https://github.com/electron/electron/releases/tag/v42.9.0
42.8.1 07 Aug 2026 07:12:25
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.8.1
Changelog: https://github.com/electron/electron/releases/tag/v42.8.1
Reported by: GitHub (watch releases)
42.8.0 30 Jul 2026 20:36:02
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.8.0
Changelog: https://github.com/electron/electron/releases/tag/v42.8.0
Reported by: GitHub (watch releases)
42.7.1 25 Jul 2026 07:31:05
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.7.1
Changelog: https://github.com/electron/electron/releases/tag/v42.7.1
Reported by: GitHub (watch releases)
42.7.0_1 21 Jul 2026 06:47:24
Mikael Urankar (mikael)
lang/rust: Bump revisions after 1.97.1
PR: 296645
42.7.0 16 Jul 2026 08:23:54
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.7.0
Changelog:
- https://github.com/electron/electron/releases/tag/v42.6.2
- https://github.com/electron/electron/releases/tag/v42.7.0
Reported by: GitHub (watch releases)
42.6.1 10 Jul 2026 12:03:40
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.6.1
Changelog: https://github.com/electron/electron/releases/tag/v42.6.1
Reported by: GitHub (watch releases)
42.6.0 07 Jul 2026 04:57:35
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.6.0
Changelog:
- https://github.com/electron/electron/releases/tag/v42.5.2
- https://github.com/electron/electron/releases/tag/v42.6.0
Reported by: GitHub (watch releases)
42.5.1 30 Jun 2026 13:37:49
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.5.1
Changelog: https://github.com/electron/electron/releases/tag/v42.5.1
Reported by: GitHub (watch releases)
42.5.0 27 Jun 2026 08:38:06
Hiroki Tagato (tagattie)
*/*: Adjust USES and USE_ELECTRON after electron.mk split (ed6a84c1c979)
42.5.0 25 Jun 2026 00:16:32
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.5.0
Changelog: https://github.com/electron/electron/releases/tag/v42.5.0
Reported by: GitHub (watch releases)
42.4.1 19 Jun 2026 00:08:52
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.4.1
Changelog: https://github.com/electron/electron/releases/tag/v42.4.1
Reported by: GitHub (watch releases)
42.4.0 15 Jun 2026 15:55:34
Gleb Popov (arrowd)
*: Fix dependency on Mesa after pkg-plist reshuffling
42.4.0 15 Jun 2026 11:20:09
Hiroki Tagato (tagattie)
devel/electron{37,38,39,40,41,42}: Unbreak chromium tarball extraction on
-current
When a user tries to build electron using a 16-current jail, it fails
in the extract phase with the following error:
tar: Pathname can't be converted from UTF-8 to current locale
tar: Error exit delayed from previous errors
This is due to the ports framework sets the environment variable
LC_ALL to C, which causes tar to fail to extract files containing
non-ASCII characters in their names. To cope with this, EXTRACT_ENV
was introduced in the commit 98103f194302. Utilizing this variable
when extracting the chromium tarball fixes the error.
PR: 296017
Reported by: Dan Kotowski <dan.kotowski@a9development.com>,
fgorter <fgorter@gmail.com>
42.4.0 13 Jun 2026 14:19:41
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.4.0
Changelog: https://github.com/electron/electron/releases/tag/v42.4.0
Reported by: GitHub (watch releases)
42.3.3 09 Jun 2026 10:57:46
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.3.3
Changelog: https://github.com/electron/electron/releases/tag/v42.3.3
Reported by: GitHub (watch releases)
42.3.2_1 04 Jun 2026 08:52:51
Mikael Urankar (mikael)
lang/rust: Bump revisions after 1.96.0
PR: 295694
42.3.2 03 Jun 2026 10:59:10
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.3.2
Changelog:
- https://github.com/electron/electron/releases/tag/v42.3.1
- https://github.com/electron/electron/releases/tag/v42.3.2
Reported by: GitHub (watch releases)
42.3.0 30 May 2026 03:15:24
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.3.0
Changelog: https://github.com/electron/electron/releases/tag/v42.3.0
Reported by: GitHub (watch releases)
42.2.0 24 May 2026 12:59:04
Hiroki Tagato (tagattie)
devel/electron42: Update to 42.2.0
Changelog: https://github.com/electron/electron/releases/tag/v42.2.0
Reported by: GitHub (watch releases)
42.1.0 18 May 2026 04:12:48
Hiroki Tagato (tagattie)
devel/electron42: Add port: Build cross-platform desktop apps with JavaScript,
HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.
It's easier than you think.
If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.
WWW: https://electronjs.org/