cuba-labs / java-electron-tutorial

How to build Java Desktop applications with Electron
268 stars 49 forks source link

How to build a complete runnable application? #1

Closed chhh closed 6 years ago

chhh commented 6 years ago

The tutorial is awesome and it works. I can run the app from src\main\electron with npx electron . But how do I create a runnable final product, like a separate executable? Running src\main\electron\demo\bin\demo.bat starts an embedded server that is accessible from the browser. How to achieve the same effect as from npx electron . when ran from src\main\electron?

jreznot commented 6 years ago

Hi!

The application should be packaged with electron-packager as it is shown here: https://github.com/jreznot/electron-java-app/blob/master/build.gradle#L147

If you want to see how to build the complete solution then take a loot at the full blown application: https://github.com/jreznot/electron-java-app

chhh commented 6 years ago

Thanks!