Electron-builder: Configuration & Documentation on fileAssociations

Created on 9 Aug 2018  路  3Comments  路  Source: electron-userland/electron-builder


  • Version: Latest

  • Target: macOS & Windows


Whilst trying to figure out how to configure a URL聽protocol, I saw it was listed at the fileAssocations property.

See: https://www.electron.build/configuration/configuration#PlatformSpecificBuildOptions-fileAssociations

However there are glaring issues with the documentation:

  • name and role are listed twice
  • name is listed as both required and optional, so which is it?
  • What is schemes and why is it required?
  • What's a Protocol type? Is that just a string or is it a specific object?

Also, are there examples of the different practical usecases for fileAssociations? It's a bit confusing with URL protocol not being file association but being configured here.

backlog

Most helpful comment

I was taking a look at this section too with some confusion... it looks like there is some sort of formatting issue for the list nesting levels. take a look at this: https://github.com/electron-userland/electron-builder/blob/docs/generated/PlatformSpecificBuildOptions.md

All 3 comments

I was taking a look at this section too with some confusion... it looks like there is some sort of formatting issue for the list nesting levels. take a look at this: https://github.com/electron-userland/electron-builder/blob/docs/generated/PlatformSpecificBuildOptions.md

This threw me too. It looked like the documentation for what a Protocol object is was totally missing.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omarkilani picture omarkilani  路  3Comments

ccorcos picture ccorcos  路  3Comments

philcockfield picture philcockfield  路  3Comments

iklemm picture iklemm  路  3Comments

JohnWeisz picture JohnWeisz  路  3Comments