Skip to content

A simple Electron auto update API to make auto updates easier and more customizable for Electron apps.

License

Notifications You must be signed in to change notification settings

davidterins/electron-auto-update-api

Repository files navigation

Electron Auto Update API

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.

Configuration

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"
  }

Development

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/.

Deploy the api as a containerized application to Heroku

Requirements

  • Heroku account
  • Heroku CLI installed
  • Docker installed

Deploy with Heroku CLI 🚀

  1. Run heroku login
  2. Run heroku container:login
  3. Run heroku apps:create nameOfYourApp
  4. (only if using private github repo) Run heroku config:set APIKey=YourGHToken --app nameOfYourApp
  5. Modify ./heroku-publish/heroku-publish.bat by replacing occurances of "nameOfYourApp" to the name used in step 3.
  6. Finally run ./heroku-publish/heroku-publish.bat.
  7. Checkout your API at https://nameOfYourApp.herokuapp.com/api

About

A simple Electron auto update API to make auto updates easier and more customizable for Electron apps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published