Serves private repo assets for electron updater.
git clone https://github.com/kevinphelps/electron-update-server.git
cd electron-update-server
yarn
yarn run build
Substitute url for fork if needed.
Environment variables: (use .env
file in project root for development)
GITHUB_ACCESS_TOKEN=TOKEN
Run yarn run watch
and yarn start
concurrently.
/download/:owner/:repo/:filename
: Download file from the latest release in the given repo.
"publish": {
"provider": 'generic',
"url": 'https://example.com/download/:owner/:repo'
}
Set up Heroku:
heroku git:remote -a APP_NAME
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs#yarn
Push to Heroku:
git push heroku master