- Electron-Builder Version: 25.1.7
- Electron Version: 32.1.2
- Electron Type (current, beta, nightly): current
N/A
I'm using electron-builder with detectUpdateChannel = true, generateUpdatesFilesForAllChannels = true, and publish.provider = "github", and it will not set the channel based on the version (e.g. 1.2.3-beta.4 in my package.json. All builds wind up creating a latest.yml file.
electron-builder does emit the channel-specific yaml if I set publish.channel explicitly.
It seems the logic to do this is typically in SomePublisherClass.checkAndResolveOptions1 but GitHubPublisher has no such function, instead doing all options logic in the constructor2.
N/A
I'm using
electron-builderwithdetectUpdateChannel = true,generateUpdatesFilesForAllChannels = true, andpublish.provider = "github", and it will not set thechannelbased on the version (e.g.1.2.3-beta.4in my package.json. All builds wind up creating alatest.ymlfile.electron-builderdoes emit the channel-specific yaml if I setpublish.channelexplicitly.It seems the logic to do this is typically in
SomePublisherClass.checkAndResolveOptions1 butGitHubPublisherhas no such function, instead doing all options logic in the constructor2.Footnotes
https://github.com/electron-userland/electron-builder/blob/8cc2b42a0386d07b90749b5ce52de221786c46a2/packages/app-builder-lib/src/publish/PublishManager.ts#L481-L516 ↩
https://github.com/electron-userland/electron-builder/blob/8cc2b42a0386d07b90749b5ce52de221786c46a2/packages/electron-publish/src/gitHubPublisher.ts ↩