Build instructions:

https://www.electronjs.org/docs/latest/development/build-instructions-gn


Pre-requisites:
---------------


On Ubuntu >= 20.04, install the following libraries:
----------------------------------------------------

$ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
                       libnotify-dev libasound2-dev libcap-dev \
                       libcups2-dev libxtst-dev \
                       libxss1 libnss3-dev gcc-multilib g++-multilib curl \
                       gperf bison python3-dbusmock openjdk-8-jre

If you want to build for an arm target you should also install the following dependencies:
------------------------------------------------------------------------------------------

$ sudo apt-get install libc6-dev-armhf-cross linux-libc-dev-armhf-cross \
                       g++-arm-linux-gnueabihf

Similarly for arm64, install the following:
-------------------------------------------
$ sudo apt-get install libc6-dev-arm64-cross linux-libc-dev-arm64-cross \
                       g++-aarch64-linux-gnu


<<<<<<< HEAD
Install dpkg fakeroot for Linux and Mac - deb:
----------------------------------------------

sudo apt-get install dpkg fakeroot


Install rpmbuild for Linux - rpm:
----------------------------------

sudo apt-get install rpm


Install Wine and Mono-develop for Windows distribution:
-------------------------------------------------------

Mono-Develop:
------------
https://www.mono-project.com/download/stable/#download-lin

sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

Wine:
-----

sudo apt-get install wine 

=======
Install Wine for Windows:
------------------------

sudo apt-get install wine
>>>>>>> e01ffbe ([Commit] Adding files for cross compilation in linux, mac, windows for different architecture)

Global installs in Linux
------------------------

npm install -g prebuild



ELECTRON-FORGE USES ELECTRON PACKAGER:
[Build for all platforms https://github.com/electron/electron-packager#building-windows-apps-from-non-windows-platforms]:


Target platforms [win32, darwin, mas, linux]:
    - Windows (also known as win32, for x86, x86_64, and arm64 architectures),
    - macOS (also known as darwin) / Mac App Store (also known as mas)* (for x86_64, arm64, and universal architectures),
    - Linux (for x86, x86_64, armv7l, arm64, and mips64el architectures)

Architectures:
x86, x86_64, arm64, armv7l, arm64, mips64el
