Jump to content

Packing an Electron app for Linux, Mac, and Windows

Nettly_
Go to solution Solved by DevBlox,

Ah. Too bad I can't show you examples (company code). You basically install all the dependencies with npm install and run electron-builder to also install dependencies. Then you can use it to cross-compile binaries to other platforms even. Works like a charm. You get a single executable and that's it!

 

electron-builder: https://github.com/electron-userland/electron-builder

 

EDIT: There's a config you need to cretate for your application, read the docs basically.

I developed the app Lazypax, which does work on Mac, Linux, and Windows. However it has to be compiled from source to use it. What is a good way to package it for Linux, Mac, and Windows simultaneously? Any help will be appreciated, and if it cannot be done simultaneously than a quick way to package it for one system at a time. 

Link to comment
Share on other sites

Link to post
Share on other sites

Ah. Too bad I can't show you examples (company code). You basically install all the dependencies with npm install and run electron-builder to also install dependencies. Then you can use it to cross-compile binaries to other platforms even. Works like a charm. You get a single executable and that's it!

 

electron-builder: https://github.com/electron-userland/electron-builder

 

EDIT: There's a config you need to cretate for your application, read the docs basically.

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, DevBlox said:

Ah. Too bad I can't show you examples (company code). You basically install all the dependencies with npm install and run electron-builder to also install dependencies. Then you can use it to cross-compile binaries to other platforms even. Works like a charm. You get a single executable and that's it!

 

electron-builder: https://github.com/electron-userland/electron-builder

 

EDIT: There's a config you need to cretate for your application, read the docs basically.

Tysm!!!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×