profilemop.blogg.se

Electron cross compile mac on linux
Electron cross compile mac on linux




electron cross compile mac on linux electron cross compile mac on linux
  1. Electron cross compile mac on linux how to#
  2. Electron cross compile mac on linux install#

Infer the platform and arch from the host, in this example, darwin platform and 圆4 arch.Infer the appVersion from the version in package.json.Infer the appname from the productName in package.json.Use the current directory for the sourcedir.To build a package from the current directory and for the current platform execute. To build an application for a platform you’ll need to execute the following command in terminal / command prompt.Įlectron-packager -platform= -arch=

Electron cross compile mac on linux install#

We will install electron-packager globally with You can install it globally or as a dev dependency. In order to build and package your app, you need to install electron-packager first.

  • Linux (for x86, x86_64, and armv7l architectures).
  • app bundle can only be signed when building on a host OS X platform.
  • OS X (also known as darwin) / Mac App Store (also known as mas).
  • Windows (also known as win32, for both 32/64 bit).
  • It generates executables/bundles for the following target platforms: Note that packaged Electron applications can be relatively large (40-60 MB).Įlectron Packager is known to run on the following host platforms: Also change the ‘ name‘ parameter in package.json to part6Įlectron Packager is a command line tool and Node.js library that bundles Electron-based application source code with a renamed Electron executable and supporting files into folders ready for distribution. For this article, I copied the part5 folder and renamed it to part6.

    Electron cross compile mac on linux how to#

    In this article you are going to learn how to create a release of your Electron app for different platforms (Windows, Mac, Linux) and in all architectures (x32, 圆4) using the electron packager module. You have no clue, how to do that? No worries! So you are ready to create your first release. Following part 1 – 5 of the Electron tutorial you’re probably ready with the design, preparation and debugging of your app.






    Electron cross compile mac on linux