Skip to content

main.js serverProcess launch #24

@Ulterior

Description

@Ulterior

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions