Comments (3)
Sure, go ahead :)
from pennywise.
I know simple solution that implement update for builded app.
I will describe logic and code of simple solution.
If you like this, I want to make PR about this issue.
Using electron-updater, show documentation if you want
Sequence
This method keeps your built applications up to date at all times.
- When started application, app check if current version is latest version.
- If current version is not latest, app install latest version without asking user.
- App notify that complete of download about latest install file.
- When app is quited, app is updated latest version using install file.
Precondition
- Need to uploaded builded file(like
pennywise-0.6.0.dmg
) in github release page- It doesn't matter because this is already being done.
- This method use GitHub API. Therefore It exist limit for update check per hour. I think this limit is big enough for update but If you want huge service, this method may not be suitable for use.
The GitHub API currently has a rate limit of 5000 requests per user per hour. An update check uses up to 3 requests per check.
Code
Show my repository code
I made update for electron app.
- import
electron-updater
.
import { autoUpdater } from 'electron-updater';
- setting github repository config.
autoUpdater.setFeedURL({
provider: 'github',
owner: '{user-name}',
protocol: 'https',
repo: '{repo-name}',
});
- call update check method (may be located when app is inited)
autoUpdater.checkForUpdatesAndNotify()
Screen shot about notification.
Please comment your opinion.
If you like this method, I can make PR.
from pennywise.
Close this issue because of completed by #68
from pennywise.
Related Issues (20)
- Assign window title identifier!
- Feature Request: Transparent pages
- feature: support for media keys
- Update README for installation command HOT 1
- Enable JavaScript
- Pennywise 0.8.0 infected with Malware-Gen [Trj] according to AVAST Antivirus HOT 1
- How to build pennywise???
- Pennywise and screen sharing in Zoom not working together
- *Feature Request* reduce size of navigation bar or hide navigation bar on window inactivity.
- *feature request* Hope this app could open and read files HOT 1
- Update install instructions HOT 1
- way to minimize top bar HOT 1
- Bug: server on port 6280 doesn't launch passed links HOT 1
- Malware NukeSped in pennywise--0.8.0.dmg HOT 1
- [Feature Request] Option to reload webpages automatically
- Pennywise malware detected. HOT 3
- Frameless Window Issue
- moonlock & plex
- Add a key combo to make it appear and disappear
- Browser does not work properly when a protection software is running in the background
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pennywise.