Skip to content

Unable to use binaries option to sign additional binaries #1723

Open
@voldemortensen

Description

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • Not relevant
  • Electron Version:
    • Not relevant
  • Operating System:
    • Not relevant
  • Last Known Working Electron Packager version::
    • Not relevant

Expected Behavior

I should be able to use binaries in osxSign to sign additional binaries.

Actual Behavior

The TypeScript definition explicitly removes the binaries key using Omit which results in this error:

forge.config.ts:15:7 - error TS2322: Type '{ binaries: string[]; optionsForFile: () => { entitlements: string; }; }' is not assignable to type 'true | OsxSignOptions'.
  Object literal may only specify known properties, and 'binaries' does not exist in type 'OsxSignOptions'.

To Reproduce

const config: ForgeConfig = {
  ...
  packagerConfig: {
    osxSign: {
      binaries: ["./path/to/extra/binary"],
    },
  },
};

Additional Information

binaries has been omitted since the OsxSignOptions type was introduced in a2a3ae5

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions