Skip to content

Commit

Permalink
fix: add product scope to keygen provider (#6975)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg authored Jul 4, 2022
1 parent 8ffd9d4 commit 8279d05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-goats-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"electron-updater": patch
---

Fix artifact conflicts for Keygen provider when multiple artifacts share the same filename across products.
2 changes: 1 addition & 1 deletion packages/electron-updater/src/providers/KeygenProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class KeygenProvider extends Provider<UpdateInfo> {
...runtimeOptions,
isUseMultipleRangeRequest: false,
})
this.baseUrl = newBaseUrl(`https://api.keygen.sh/v1/accounts/${this.configuration.account}/artifacts`)
this.baseUrl = newBaseUrl(`https://api.keygen.sh/v1/accounts/${this.configuration.account}/artifacts?product=${this.configuration.product}`)
}

private get channel(): string {
Expand Down

0 comments on commit 8279d05

Please sign in to comment.