fix: github updater provider with private repositories#110
fix: github updater provider with private repositories#110andreamarelli wants to merge 1 commit intoNativePHP:mainfrom
Conversation
|
Hi, thank you for looking into that. Currently, this appears to be a breaking change. I also don't fully understand the solution as you do. For me, GH_TOKEN is used to check for releases on a private repository, while GITHUB_RELEASE_TOKEN is the token that has write access to publish the app to those releases.
You will also need to change config/nativephp.php. Please update the PR to support both, and we will need another PR for the documentation to clarify the situation. |
Using
GITHUB_RELEASE_TOKENinstead ofGH_TOKENenable the possibility to publish to a private repository,See references in
electron-builddocumentation and code.At the moment the
app-update.ymlfile in the electron builder does not receive any token, which is fine for checking for updates from a public repository, but not from a private one where a token is required instead.