electron-es6-react icon indicating copy to clipboard operation
electron-es6-react copied to clipboard

what about packaging and building electron app script

Open JyotirmoyGoswami opened this issue 8 years ago • 2 comments

JyotirmoyGoswami avatar Jul 27 '17 14:07 JyotirmoyGoswami

i found a solution that work for me https://github.com/chentsulin/electron-react-boilerplate/issues/139#issuecomment-207596776

satart avatar Sep 06 '17 18:09 satart

@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.

thisispete avatar Oct 01 '17 22:10 thisispete