Code Monkey home page Code Monkey logo

custom-electron-autoupdater's Introduction

ELECTRON AUTO UPDATE WITH CUSTOM STATIC SERVER (NON PUBLIC GIT REPO, need custom authentication)

suppose we have 0.0.1 version and we want to let auto update to versin 0.0.2.

according to electron doc: Updating Applications

you could host your one on updates.electron or some other platform.

But we need have binaries behind authencation. also hosting on github is not option, we need to hosted somewhere freely like OSS in china(not officially supported) or some server.

MANUALLY

Because the requests made by Auto Update aren't under your direct control, you may find situations that are difficult to handle (such as if the update server is behind authentication). The url field does support files, which means that with some effort, you can sidestep the server-communication aspect of the process. Here's an example of how this could work.

Good post from joshuapinter on this issue.

SOME TWEAKS
  • use electron-download-manager to download nupkg and RELEASES files - (from npm run make)
  • use electron-log to somehow log file ( you could check that log when running)
  • host those two files in some server or static file services

v0.0.1 v.0.0.2 after quit and install, it will automatically start app with new version code videos

ORIGIN REPO:

Update Rocks! Electron

Build Status Build Status

This is our electron applicatino which integrate Update Rocks! You can learn more about how it works here : https://www.update.rocks/howto

It also have the travis and travis scripts which automatically publish the assets in a release when a tag is created.

Install dependencies

$ npm install

Dev

$ npm start

Build

$ npm run make

custom-electron-autoupdater's People

Contributors

rllola avatar tuo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.