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.
===> The following configuration options are available for electron38-38.8.6_5:
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
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>
devel/electron38: Fix build with rust 1.94
The previous patch fixed builds with rust 1.95. However, it broke
builds with rust 1.94, which is the current version in the ports
tree. This commit makes it build with both rust 1.94 and 1.95.
Fixes: 058c1391b4f5 (devel/electron38: Fix build with rust 1.95)
devel/electron38: Update to 38.7.2
While here:
- switch to use USE_ELECTRON features of electron.mk for specifying
node package manager, pre-fetching necessary node modules, and
extracting the node modules into appropriate directories
- use USES=display for starting/stopping display server on testing
- specify TEST_ENV instead of listing env vars in test target
Changelog: https://github.com/electron/electron/releases/tag/v38.7.2
devel/electron{34,36,37,38}: Fix build when rust is not installed in time
VAR!= gets expanded on the first make invocation and because rust is a
build dependency, it might not be installed at that time, so getting
the version of rustc was erratic.
Use gn to get the version instead.
Reported by: mikael (via private email)
Obtained
from: https://cgit.freebsd.org/ports/commit/?id=ee86324cade722c6cb8013545e6b8a8c6b05cf82
devel/electron38: 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/