-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron Updater using incorrect URL to download update from Github #6076
Comments
Looks like the version is being pulled from here: |
So, it's 'cause the version in the I've done some more delving here, and Electron Builder does correctly get the tag name from GitHub here. It then will successfully use that to create the URL to get the However, from then forward, it'll use the version from the However, it stills seems like I could submit a PR to make this line look like:
which would just prefer the version that's actually on the tag name, but I feel like that might not be right? But still, I think the Electron Builder shouldn't throw away the tag name that it knows is valid in order to use the version string declared in the yaml. But maybe having the tag name perfectly match the version declared in the yaml is a requirement to use the update functionality? |
Modify the GitHubProvider to provide the tag name of the latest release as apart of its UpdateInfo (which is now encapsulated in the GithubUpdateInfo interface) so that it uses that same tag name later when it resolves the files to download. fix electron-userland/issues/6076
Modify the GitHubProvider to provide the tag name of the latest release as apart of its UpdateInfo (which is now encapsulated in the GithubUpdateInfo interface) so that it uses that same tag name later when it resolves the files to download. fix electron-userland/issues/6076
Modify the GitHubProvider to provide the tag name of the latest release as apart of its UpdateInfo (which is now encapsulated in the GithubUpdateInfo interface) so that it uses that same tag name later when it resolves the files to download. fix electron-userland/issues/6076
I have an application (https://github.com/wardellbagby/lyricistant) that builds for web browsers, native desktop OSes (via Electron), Android devices, and iOS devices. I recently changed how I name my tags to include the platforms that were updated in that tag. E.g., if only Web is updated, the tag will be
v.1.2.6-web
. If Electron and Android are updated, it would bev.1.2.6-electron-android
.The problem I'm running into is it seems Electron Updater expects for tags to always be named in the form of
v1.2.6
, with no trailing information. I say this because I recently createdv1.2.6-electron-web
, and the app recognizes that it's an update for Electron, but tries to access the wrong URL for it.Here are my relevant logs:
The URL should instead be
https://github.com/wardellbagby/lyricistant/releases/download/v1.2.6-web-electron/lyricistant-mac_x64.dmg
instead.The text was updated successfully, but these errors were encountered: