Skip to content

Unable to pass Publish options to electron-builder #240

@RaddishIoW

Description

@RaddishIoW

Bug Report

Problem

What is expected to happen?

I am able to pass configuration to electron-builder to define Publish parameters.

What does actually happen?

I am unable to pass parameters correctly through to electron-builder. It seems that the way cordova-electron intermediates between the developer and electron-builder is unnecessarily complex and leads to errors and problems with the ability to configure electron-builder.

According to the documentation for electron-builder, you should be able to pass through "publish" options as a top-level object, or per platform or per target: https://www.electron.build/configuration/publish

Information

According to the documentation for cordova-electron, the only valid keys for the "electron" config object in the build.json file are "mac", "windows" and "linux". Anything else is ignored and not passed through to electron-builder in the builder-effective-config.yaml file.

Command or Code

Environment, Platform, Device

Version information

Checklist

  • [x ] I searched for existing GitHub issues
  • [ x] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions