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
feat: Adding Keygen as an official publisher/updater for electron-builder #6167
feat: Adding Keygen as an official publisher/updater for electron-builder #6167
Conversation
🦋 Changeset detectedLatest commit: 0880d1b The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
e2d9af6
to
7f81021
Compare
@ezekg few quick notes 🙂
I actually pulled this logic from Bintray, but I'm more than happy to scan for the other errors as well. Can just check for any status code that starts with
I actually pulled this from the documentation that both would be returned. Would you be willing to update it? I found it confusing. I'll update the logic accordingly in my PR |
Yep, generally, you can use I will update the API docs to make return values clearer when an error occurs, thanks for the feedback. |
3df3246
to
daf7b7d
Compare
@@ -46,6 +46,17 @@ test("file url generic", async () => { | |||
await validateDownload(updater) | |||
}) | |||
|
|||
test.ifEnv(process.env.KEYGEN_TOKEN)("file url keygen", async () => { | |||
const updater = await createNsisUpdater() | |||
updater.addAuthHeader(`Bearer ${process.env.KEYGEN_TOKEN}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ezekg! Quick note for documentation: The end-user will need to know this detail of adding the "Bearer " prefix on their own. I think the function's name makes it self-explanatory that it's the Authorization
header, but might still be worth noting in the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks great. A couple notes/nits which can be safely ignored. Excited for this! 🙂
CC @ezekg