Project:Chromium/Electron

From Gentoo Wiki
Jump to:navigation Jump to:search

Electron is a framework for building cross-platform desktop applications using web technologies.

Electron is built on top of the Chromium browser and the Node.js runtime, allowing developers to create applications using HTML, CSS, and JavaScript. It is commonly used for building applications like text editors, IDEs, and other tools that require a graphical user interface.

Many popular applications, such as Visual Studio Code, Slack, and Discord, are built using Electron.

Installation

dev-util/electron is available in the main Gentoo ebuild repository.

To install Electron, run the following command:

root #emerge --ask dev-util/electron

The binary Electron package is available as well (on some architectures / configurations), and can be installed with:

root #emerge --ask dev-util/electron-bin

Typically this is taken care of by the application that depends on Electron; users don't need to install it manually.

Packages that depend on Electron will automatically pull in the necessary dependencies.

Packages that use Electron should inherit electron.eclass to ensure that appropriate electron dependencies (including version restrictions) are generated. See Packaging Electron apps for more information.

Usage

Electron is useless on its own, as it is a framework for building applications.

The dev-dependencies USE flag enables the installation of development dependencies, which may be useful for building applications with Electron, or doing electron development. It is not required to run applications built with Electron.

Apps in Gentoo that use Electron should depend on this package rather than a version provided by npm.