-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update S3Provider.php #65
Conversation
Update S3 to implement correct `Updater` interface I wasn't sure if the env vars were added to the binary so I migrated from using AWS keys / secret to a profile
Updated S3 config to be in line with NativePHP/electron#65
I had to add the following for the
|
I purposely left out the key / secret and only used the profile. You can set the profile on the CLI and it will map to the credentials w/o passing them through the build process. |
Really hoping this can get merged soon @mpociot or @simonhamp - can one of you look at this? Without the methods in this PR, you cannot build for S3. |
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.
This looks fine to me, but I must confess I know very little about S3 and don't have an account to test on.
I'm also not aware of how the electron-builder module expects these parameters.
It might be nice to add some comments to the Updater
interface explaining how these parameters are used, as it feels like more drivers for this could come in the future.
Facing this error with these changes
|
See this PR: NativePHP/laravel#90 |
The KEY and SECRET are definitely available and so they should probably be used for consistency purposes. Not everyone will have a profile set up (think: CI runners who are just building the app and have the key and secret injected at run time). |
The KEY and SECRET were specifically not used because they were compiled in to the release. They can all be added back in as optional params, but I wouldn't recommend taking the risk. This PR is approved days ago so I'm not really sure how to move forward. Any guidance would be appreciated. |
They've been approved but nothing has happened yet, so don't feel locked in place. If there's room for improvement, take the opportunity. Nothing has been merged so until that happens, make all the changes you want. |
NativePHP/laravel#90 was closed as it doesn't feel like the right solution to that problem. As long as your Also worth noting that Electron's native updater has a default acl of @lonnylot Please could you clean up this PR when you get a chance? |
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.
See previous comment
@simonhamp I'll get to it ASAP, but I'm fairly busy now. Wouldn't be offended if someone else made the adjustments. |
Co-authored-by: Simon Hamp <simon.hamp@me.com>
Co-authored-by: Simon Hamp <simon.hamp@me.com>
Update S3 to implement correct
Updater
interfaceI wasn't sure if the env vars were added to the binary so I migrated from using AWS keys / secret to a profile