Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what about packaging and building electron app script #12

Open
JyotirmoyGoswami opened this issue Jul 27, 2017 · 2 comments
Open

what about packaging and building electron app script #12

JyotirmoyGoswami opened this issue Jul 27, 2017 · 2 comments

Comments

@JyotirmoyGoswami
Copy link

No description provided.

@satart
Copy link

satart commented Sep 6, 2017

i found a solution that work for me
electron-react-boilerplate/electron-react-boilerplate#139 (comment)

@thisispete
Copy link

thisispete commented Oct 1, 2017

@satart that worked great, to further explain for others that find this:

install electron-packager CLI :
npm install electron-packager -g

create a new index.js in the root of your project next to main.js with the following:

/* eslint strict: 0 */
'use strict';

require('babel-register');
require('./main.js'); 

In package.json change the start point "main" to "index.js"

Then you can run electron-packager . to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants