Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

AutoUpdater.ChannelAsync_set

Open richardhauer opened this issue 4 years ago • 0 comments

I'm using the AutoUpdater from a static HTTP source (Azure Blob storage) using the generic provider. I have updated the electron.manifest.json as directed in the Electron docs, adding build.generateUpdatesFilesForAllChannels: true and then set the build.buildVersion: 1.1.1-alpha.

There is also a 'win' section...

    "win": {
      "publish": {
        "provider": "generic",
        "url":  "https://azure-storage-url.z8.web.core.windows.net/pos/",
        "channel": "alpha"
      }
    }

I have noticed that setting the channel above when doing a build controls whether all three YML files ( latest.yml, alpha.yml and beta.yml) are produced or just alpha or alpha and beta. So all that seems to be what I'd have expected.

In the Electron documentation it says that to set the "appUpdater.channel" property to the channel that you want the updater to check. (https://www.electron.build/auto-update#module_electron-updater.AppUpdater+channel)

The AutoUpdater::ChannelAsync has a getter, but no setter for this purpose. AutoUpdater::AllowPrerelease is marked for the Github provider only.

Is there a reason there is no setter for the ChannelAsync property? Is there another way to use the Channel system? I have workarounds but I'd rather use the standard features where possible.

richardhauer avatar Oct 30 '21 02:10 richardhauer