An API to be used together with electron-updater's "Generic" provider in your Electron application to make auto updates easier & more custmizable in both development and production environments.
Checkout auto-update-electron-app to see how to configure your Electron app to use the API as a "Generic" provider.
In ./ElectronAutoUpdateApi/appsettings.json
& ./ElectronAutoUpdateApi/appsettings.Development.json
update the following section to the GitHub repository to where you are storing your application's releases.
"Github": {
"Private": "false",
"Owner": "davidterins",
"Repository": "my-apps-updates-repository",
"ProductHeader": "AProductHeader"
}
If using the API for a private repository and want to avoid specifying your GitHub token within the source code, run:
dotnet user-secrets set "APIKey" "YourGHToken"
Start the application. Debug and test your endpoints with Swagger https://localhost:5004/swagger/.
- Heroku account
- Heroku CLI installed
- Docker installed
- Run
heroku login
- Run
heroku container:login
- Run
heroku apps:create nameOfYourApp
- (only if using private github repo) Run
heroku config:set APIKey=YourGHToken --app nameOfYourApp
- Modify
./heroku-publish/heroku-publish.bat
by replacing occurances of "nameOfYourApp" to the name used in step 3. - Finally run
./heroku-publish/heroku-publish.bat
. - Checkout your API at https://nameOfYourApp.herokuapp.com/api