Skip to content

Ability to change what file Electron starts #64

@Gabriel-Alves-Cunha

Description

@Gabriel-Alves-Cunha

Hey, I changed the compilation output directory on the esbuild.config.json by the '--esbuild-config-file' option and, while esbuild does compile my code on the correct dir, I believe the electron command called by elecrun is still expecting the code to be on the normal output directory (as per the README: "dev command save the build artifact to node_modules/.electron-run/app").

So it gives an error:

Error launching app
Unable to find Electron app at /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app

Cannot find module '/home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app'
Require stack:
- /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/electron/dist/resources/default_app.asar/main.js
- 
Electron exited with code 1

And I've found no way to change the directory electron should take to start. Is there a way? If not, how could one introduce this option on this project?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions