[Bug 291321] Mk/Uses/electron.mk and companion scripts: Helper makefile and scripts for easily porting Electron-based applications
Date: Sun, 21 Dec 2025 12:48:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291321
--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/ports/commit/?id=331eb8eae50d49c8e87954dd6668b8944428618a
commit 331eb8eae50d49c8e87954dd6668b8944428618a
Author: Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-12-21 12:35:58 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-12-21 12:47:23 +0000
Mk/Uses: Add electron.mk and companion scripts
electron.mk and companion scripts for making it easier to port
Electron-based applications.
The electron.mk addresses the following obstacles in porting:
- Need to adapt to different node package managers used in a
project (npm, yarn, and pnpm)
Different package managers have different commands and options. With
electron.mk, porters don't have to worry about those differences
using USE_ELECTRON=npm feature.
- Need to create an archive of necessary node modules and host the
file somewhere online
An Electron-based project usually needs to install node modules
using "npm install" command during the build phase. We can't allow
this because "npm install" involves network access. So we had to
pre-generate an archive of necessary node modules and host it
somewhere online. electron.mk eliminates the necessity by locally
generating the archive of the node modules on-the-fly at a host
building the port during the fetch phase.
- Need to adapt to different package builders used (electron-builder,
electron-packager, and electron-forge)
Different package builders have different commands and options. With
electron.mk, porters don't have to worry about those differences
using USE_ELECTRON=build feature.
PR: 291321
Reviewed by: arrowd
Approved by: portmgr (implicit)
Differential Revision: https://reviews.freebsd.org/D54005
Mk/Scripts/electron-create-mtree.sh (new) | 34 +
.../electron-normalize-permissions.awk (new) | 30 +
Mk/Uses/electron.mk (new) | 819 +++++++++++++++++++++
3 files changed, 883 insertions(+)
--
You are receiving this mail because:
You are on the CC list for the bug.