Giter VIP home page Giter VIP logo

Comments (12)

iffy avatar iffy commented on August 26, 2024

Can you show me what's on line 130 of your main.js file?

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024
  updater.enabled = true

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024

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.

iffy avatar iffy commented on August 26, 2024

@yap241986 I don't know what updater is in your code. It's not part of this example application though.

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024

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.

iffy avatar iffy commented on August 26, 2024

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

iffy avatar iffy commented on August 26, 2024

For instance, if you remove updater.enabled = true I think you wouldn't get an error anymore.

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024

thank you I only remove the custom messages.

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024

how can I set a custom html progress bar for update progress/download?

from electron-updater-example.

iffy avatar iffy commented on August 26, 2024

@yap241986 Take a look at the download-progress event: https://www.electron.build/auto-update#event-download-progress

from electron-updater-example.

ilgrandeanonimo avatar ilgrandeanonimo commented on August 26, 2024
<title>Update Downloading...</title> Update In Download...
<script> const { autoUpdater, MacUpdater, DOWNLOAD_PROGRESS } = require('electron-updater') alert(DOWNLOAD_PROGRESS) document.getElementById("percentual.dl"). <---- what's the code that I put here? </script>

from electron-updater-example.

iffy avatar iffy commented on August 26, 2024

@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)

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.