Skip to content

Support custom electron-builder config locations #1081

@seanssel

Description

@seanssel

In the process of upgrading this package now that I'm revisiting wdio in my project. This used to work with my setup in the past, but now I'm getting ERROR electron-service: Error: Electron-builder was detected but no configuration was found, make sure your config file is named correctly, e.g. electron-builder.config.json` when I try to run wdio.

I make use of the electron-builder's extend ability with multiple config files (yet another poorly documented electron-builder option). My project structure looks roughly like this:

.
├── build
├── config
│   ├── electron-builder-common.config.js
│   ├── electron-builder-production.config.js
│   ├── electron-builder-staging.config.js
├── e2e
│   ├── specs
│   ├── tsconfig.e2e.json
│   ├── tsconfig.json
│   ├── wdio.conf.ts
│   └── wdio.d.ts
| ... 

Each of my configs for specific environments extend the common config.

Looks like I have ways to get around this, but I swear this was working with my setup in the past so I'm just curious. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:electron-builderElectron Builder issueshelp:wantedAdditional help is neededpriority:lowLow priority issue or PRrelease:nextInclude in the next release within its tracksemver:minorBackward-compatible new featuresstatus:investigatingNeeds definition before work can starttrack:mainFor the current stable version tracktype:bugSomething isn't workingtype:enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions