Comments (12)
Can you show me what's on line 130 of your main.js
file?
from electron-updater-example.
updater.enabled = true
from electron-updater-example.
the complete function:
!! the title, the message and the buttons are in Italian.
autoUpdater.on('update-available', () => {
dialog.showMessageBox({
type: 'info',
title: 'Aggiornamento Disponibile',
message: 'รจ disponibile un aggiornamento installarlo?',
buttons: ['Si', 'No']
}).then((buttonIndex) => {
if (buttonIndex === 0) {
autoUpdater.downloadUpdate()
}
else {
updater.enabled = true
updater = null
}
})
})
from electron-updater-example.
@yap241986 I don't know what updater
is in your code. It's not part of this example application though.
from electron-updater-example.
if I sent to you all my code you can try to fix that problem?
(if you see grammatical error the reason is that I'm Italian)
from electron-updater-example.
@yap241986 That's not really the purpose of this repo. I suggest you start from this template and slowly add your own parts one at a time. Or work in reverse. Remove lines of your code until you don't get an error any more.
from electron-updater-example.
For instance, if you remove updater.enabled = true
I think you wouldn't get an error anymore.
from electron-updater-example.
thank you I only remove the custom messages.
from electron-updater-example.
how can I set a custom html progress bar for update progress/download?
from electron-updater-example.
@yap241986 Take a look at the download-progress
event: https://www.electron.build/auto-update#event-download-progress
from electron-updater-example.
from electron-updater-example.
@yap241986 I don't know. There are many ways you could do it. Here's what I found searching "electron-updater progress bar": https://stackoverflow.com/a/54533407/1379037
from electron-updater-example.
Related Issues (20)
- Publish and auto update for windows with generic provider HOT 2
- Doesn't work on Windows HOT 17
- Example for S3 provider instead of github HOT 2
- I'd love some help HOT 8
- I could not find releases.atom in github HOT 2
- Application is not updating automatically via private GitHub repo HOT 9
- Can this example support test in dev mode ?
- .zip windows target from electron-builder gets auto-updates HOT 1
- 'update-downloaded' never gets triggered, even after 'download-progress' is complete HOT 4
- TypeError: Cannot read property 'name' of undefined
- EEXIST: file already exists
- Example doesn't work with current versions of Electron HOT 4
- I use electronic updater to package the generated zip package on the Mac. After decompression, it shows that you don't have permission to open the application.
- SHA512 Mismatch Error in auto-updater HOT 1
- I know this is old, but @marc-parillo thanks for this.
- Change token in a private repo HOT 3
- ERROR using electron-updater with Provider Generic HOT 6
- GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN" HOT 1
- (Question) Update from localfolder?
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 electron-updater-example.