electron-java-app icon indicating copy to clipboard operation
electron-java-app copied to clipboard

main.js serverProcess launch

Open Ulterior opened this issue 5 years ago • 0 comments

Hello,

build/bundle eletron-vaadin.exe fails with unhandled exception, due to path issues, when executing from build\bundle\electron-vaadin-win32-x64 directory

main.js serverspawn doesnt take into account resources/app directory where node script is running:

if (platform === 'win32') {
    serverProcess = require('child_process')
        .spawn('cmd.exe', ['/c', 'electron-vaadin.bat'],
            {
                cwd: './electron-vaadin/bin'
            });

cwd needs to be changed to: cwd: ${__dirname}/electron-vaadin/bin

Thanks for great example project, good luck

Ulterior avatar Dec 08 '19 15:12 Ulterior